I have a query that consists of some inserts and updates, something like this
Insert Into #TempTable (...) Select top (1000) * from T where ....
Update T2 Set c1=...,c2=... where w1
Update T2 Set c1=...,c2=... where w2
Update T2 Set c1=...,c2=... where w2
I run this query from a C# App. Each part of this query could be got time out because of heavy load on server, I wanna know that if one part of query got time out (for example second update), all prior queries (Insert and first update) would be rollback by Sql Server engine?