Consider a stored procedure that updates some rows about in 60 seconds without using a transaction. We set ADO.NET\'s SqlCommand.Timeout to 30 seconds.
SqlComma
I was wondering about the exact same. I could not find an answer, but did some experimenting, and it looks like some kind of cancel query is send:
I know this is a five year old post, but if I got here, others will too :-)
By the way, in ado.net, in order to increase your timeout, you must increase in both the sqlcommand and in the sqlconnection, and the defaults for the first is 15 sec, the second 30 sec. So if you just change the sqlcommand to 60 secs, it will still timeout after 30 sec, which can be rather puzzling.
If you haven't closed your SQL connection yet, it should continue to run if it started proc execution already. (You should be able to test & verify this relatively easily.)
The answer is no, your attempted action on the server will fail after 30s, your SqlCommand object will throw an exception in your code (below) and the implicit stored procedure transaction will rollback.
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
...at least this is the behavior that I can verify using SQL Server...