I have a .Net Windows Forms app in C# in which I execute a SQL statement using SQLDataAdapter. I want the user to be able to kill the SQL statement if it seems to take to long. My thought is to execute the SQL in its own thread. Then when the user clicks a Cancel button it just stops the Thread.
Is this the best way to do this? Will it work? Is is inefficient?
Thanks,
Mark Mokris