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)
 xp_cmdshell!

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-10-15 : 17:15:06
Sajal Kumar writes "declare @ShellParam varchar(1000)
set @ShellParam = '"c:\Program Files\Microsoft SQL Server\80\Tools\Binn\osql.exe -E -Q"select 1"'
exec master.dbo.xp_cmdshell @ShellParam

the above is not working.

however, the text in the @ShellParam variable is working (of course without the single quotes in the beginning and in the end) from a dos prompt.

i am lost.
thanx very much.
sajal."
   

- Advertisement -