TransactSQL to run another TransactSQL script

后端 未结 6 887
逝去的感伤
逝去的感伤 2020-12-01 03:19

I have 10 transact SQL scripts that each create a table and fill it with data.

I am attempting to create 1 master sql script that will run each of the 10 other scrip

6条回答
  •  Happy的楠姐
    2020-12-01 03:50

    Assuming you want to keep the 10 scripts in their own individual files, I would say the easiest way to do what you want would be to create a batch file that executes osql.exe to execute the 10 scripts in the order you want.

提交回复
热议问题