If a query in a batch fails, shouldn't the whole batch fails? Here is my scenario I've got hundred of stored procedures running in a batch so
Begin
Execute stored procedure
Execute stored procedure
Execute stored procedure
.
.
.
End
Using SQL Profiler I'm viewing all events of class SQL:Batch Complete. At the same time I'm logging Events SP:Starting. When I notice an issue with my data I look at both logs. I can see the stored procedure that would update my data in the Batch Complete but it never shows up in SP:Starting.
Until today we thought maybe we weren't sending the data to the database but now we know we are but the query does not actually get executed, if anyone can help me I would greatly appreciate it.
If
Start Free Trial