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 2000 Forums
 SQL Server Development (2000)
 osql: how to pass parameters to batch file

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-03-18 : 18:44:54
Michael writes "Hi,
I have a script which will create the database and the name of the database should be a parameter in this script.

I am going to use command-line osql utility to run script, but how to pass parameters to T-SQL script file ?

( In Oracle it may be done using '&' before parameter name in script and command-line sqlplus.exe utility can pass parameters to script like sqlplus @script arg1 arg2 ...).

Thanks,
Michael. "
   

- Advertisement -