Hi Guys,
Does anybody know if/how I can cancel a query to my MS SQL server?
I could launch a 2nd thread and run the SQL there, but that would not stop the process on the SQL server.
Should I ask the question in the MS SQL server forum instead?
Thx in advance
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
Does anybody know if/how I can cancel a query to my MS SQL server?
Code:
'Open my connections here...
Dim Comm As New SqlCommand("My long haired SQL statement here",Conn)
Dim MyReader As SqlDataReader = Comm.ExecuteReader 'if the user gets tried of waiting I want to tell the SQL server to forget about it.
I could launch a 2nd thread and run the SQL there, but that would not stop the process on the SQL server.
Should I ask the question in the MS SQL server forum instead?
Thx in advance
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'