Hi Guys,
I have written a stored procedure having couple of insert and delete statements
example:
delete from mastertable1; //delete the records from master table
insert into mastertable1 select *from temptable1;
delete from temptable1; //delete the records from temp table
delete from mastertable2;
insert into mastertable2 select *from temptable2;
delete from temptable2;
Here the problem is some times the delete taking the priority than insert statement.... i.e "delete from temptable1;" statement executing first and then "insert into mastertable1 select *from temptable1;".
How can i avoid this... (in MS SQL server we have GO command.).. please help me out...
thanks in advance...