Hi,
I'm getting the below scripts to be provided to DBA for deployment. The below renames "current" tables to OLD and NEW tables to "current". I would like it be executed in order. I always felt when F5 is hit, the queries start to run in parallel.
How to make sure the subseqent statements do NOT run before the earlier statements get finished?
use SalesReporting
go
-- Rename Tables
sp_rename 'table1', 'table1_OLD'
sp_rename 'table2', 'table2_OLD'
sp_rename 'table3', 'table3_OLD'
sp_rename 'table1_NEW', 'table1'
sp_rename 'table2_NEW', 'table2'
sp_rename 'table3_NEW', 'table3'
Thanks