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 2012 Forums
 Transact-SQL (2012)
 need help in sql query

Author  Topic 

skybvi
Posting Yak Master

193 Posts

Posted - 2013-08-02 : 01:30:07
I have a computer A which has sql installed
in it
and i have the sql file which has a code
now i have another computer B
which doesnt ahve any sql tools in it
i have to connect through command line and execute the command in computer a from computer b


Regards,
Sushant
DBA
Virgin Islands(U.K)

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-08-02 : 01:41:23
you may need SQLCMD

SQLCMD can be used for executing sql scripts

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

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -