Killing long SQL Server operations from VB.net

I've a request from management, but it raises flags for me, so I'm curious if I'm right or wrong about it.

From our VB.net Windows code, some searches may take a long time to run, given certain params that users may customly create. What management wants is "after clicking a search, add a pop-up with a Cancel button to allow users to cancel the operation if they feel it's taking too long." (And yes, we optimize where we can, so moving on...)

First, after I execute a proc or query command from VB.net to the SQL DB, how then can I tell SQL Server to stop it?

And second, if I can do this, is it a potential problem? It seems that enabling excessive "kill" commands (or whatever it may be called) to our users in a multi-user environment isn't the wisest thing to do, but maybe I'm wrong. Thoughts?
jjsatherAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
You don't need to kill the process. There's a cancel method for ADO.NET objects.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.