huckfinn19
Programmer
Hi!
I am using .Net's C# language in an application that is using a SQL Server database. Some of the calls in my application to the DB take quite a while to handout the results and I would like to give my users the possibility to cancel the request if they think it's taking too long. When using the SQL Enterprise application, there is a cancel button that can be hit to stop the request in the middle of it's processing, so I guess it's also possible programmatically.
Therefore, I would like to know if someone could guide me on how to programmatically and asynchronously cancel a SQL command that was sent to SQL Server?
Thanks!
Huck
I am using .Net's C# language in an application that is using a SQL Server database. Some of the calls in my application to the DB take quite a while to handout the results and I would like to give my users the possibility to cancel the request if they think it's taking too long. When using the SQL Enterprise application, there is a cancel button that can be hit to stop the request in the middle of it's processing, so I guess it's also possible programmatically.
Therefore, I would like to know if someone could guide me on how to programmatically and asynchronously cancel a SQL command that was sent to SQL Server?
Thanks!
Huck