Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 running sql script files

Author  Topic 

SQL12
Starting Member

1 Post

Posted - 2012-08-02 : 11:18:07
Hi all,

how do I run an SQL script file (using a command to call the stored file) from the Microsoft SQL Server Management Studio 2008?
I tried a few things but nothing seems to work.

Many thanks!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-08-02 : 11:29:43
you need to use SQLCMD for that

http://msdn.microsoft.com/en-us/library/ms162773.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -