The GO statements that exists inside your script are the ones that creates the problem.
each time you use the GO SQL thinks that its a new execution.
As a result to that if you run your second script you are getting an error that there is no transaction to commit.
If you remove the GO statements all works fine.
Main Topics
Browse All Topics





by: mazherPosted on 2009-10-21 at 02:38:16ID: 25622162
I am sure this will help you out
Select allOpen in new window