Home All Groups Group Topic Archive Search About

sql 2005: statement that will call another script

Author
28 Dec 2005 4:21 PM
Trex
Is there a t-sql statement I can use to run another script?  Can I call
sqlcmd from within a script?

Author
28 Dec 2005 5:52 PM
Tibor Karaszi
You can use xp_cmdshell to call sqlcmd. If you execute the outer script from sqlcmd, you can use :r
to read and execute another script.

Show quote
"Trex" <randytrex***@hotmail.com> wrote in message
news:EYysf.11026$nm.5949@newsread2.news.atl.earthlink.net...
> Is there a t-sql statement I can use to run another script?  Can I call sqlcmd from within a
> script?
>

AddThis Social Bookmark Button