May 29, 2002 #1 mkey Programmer Joined Oct 3, 2001 Messages 288 Location CA Hi All, In oracle one can run a script file with a .sql extention like: start c:\myscript.sql How do you do something similar in sql server 7.0? thanks
Hi All, In oracle one can run a script file with a .sql extention like: start c:\myscript.sql How do you do something similar in sql server 7.0? thanks
May 29, 2002 #2 MissTipps Programmer Joined May 20, 2002 Messages 91 Location GB Just open the .sql file from within query analyser, then either click the green arrow on the toolbar, or hit F5 to run the code. You will then get a message in the results pane below informing you of the success (or otherwise) of the code. Upvote 0 Downvote
Just open the .sql file from within query analyser, then either click the green arrow on the toolbar, or hit F5 to run the code. You will then get a message in the results pane below informing you of the success (or otherwise) of the code.
May 29, 2002 #3 tlbroadbent MIS Joined Mar 16, 2001 Messages 9,982 Location US You can also use the OSQL utility to execute .SQL files from the command line. http://msdn.microsoft.com/library/en-us/coprompt/cp_osql_1wxl.asp Terry L. Broadbent - DBA Computing Links: http://tlbroadbent.home.attbi.com/prog.htm faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions. Upvote 0 Downvote
You can also use the OSQL utility to execute .SQL files from the command line. http://msdn.microsoft.com/library/en-us/coprompt/cp_osql_1wxl.asp Terry L. Broadbent - DBA Computing Links: http://tlbroadbent.home.attbi.com/prog.htm faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.