October 9, 2002 at 8:43 am
All,
We have a whole bunch of .sql scripts for the stored procedures and triggers. I am wondering is there any easy way to compile these scripts as a batch or like a make, instead of opening each file in Query analyzer and compiling.
Thanks in advance.
October 9, 2002 at 9:03 am
Hi,
open a command window, go to the directory with the files and type
copy *.* > sqlfile.txt
The file sqlfile.txt is created with all the code in it.
regards,
Klaas-Jan
October 9, 2002 at 9:28 am
You can create a .BAT-file that executes them all using osql.
--
Chris Hedgate @ Apptus Technologies (http://www.apptus.se)
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply