sql - how to run tsql from a remote system in command prompt -
i wanted know how run tsql statement remote system connecting other system , run tsql statement through command prompt.
i have tried following code code doesnt run on other system.
ps: other system doesnt have sql server installed compulsory use command prompt run system.
sqlcmd -s 100,1433\mssqlserver -u sa -p abc -i c:\table.sql -o c:\output.txt
sql server 2000 - osql utility
there's file called osql.exe using job.
file comes sql server 2000 (52 kb).
can run in cmd simmiliar arguments sqlcommand.
remember use go after each batch
example
select * sales [enter] go [enter]
Comments
Post a Comment