I'm using master..xp_cmdshell to run simple.sql which is a file containing
'Create Procedure TESTPROC '.
The command works fine but it creates TESTPROC in the
Master database.
I want the procedure TESTPROC to be created in a database called DB1.
I tried DB1..xp_cmdshell but didn't help.
Any suggestions.
Ton
'Create Procedure TESTPROC '.
The command works fine but it creates TESTPROC in the
Master database.
I want the procedure TESTPROC to be created in a database called DB1.
I tried DB1..xp_cmdshell but didn't help.
Any suggestions.
Ton