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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 SQLCMD

Author  Topic 

R44
Starting Member

8 Posts

Posted - 2011-08-29 : 06:00:27
I have .sql file, how i execute it in SQLCMD


getting error incorrect syntax below query

-S r1\pdb1 -i C:\query1.sql

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-29 : 07:32:20
see
http://msdn.microsoft.com/en-us/library/ms170572.aspx

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

Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2011-08-30 : 01:42:10
SQLCMD -S r1\pdb1 -i C:\query1.sql


Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
   

- Advertisement -