Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
I am getting the following error when running a command in QueryAnalyzer.Msg 50001, Level 1, State 50001xpsql.cpp: Error 5 from CreateProcess on line 675Here is the command that I am running that generates this errormessage:xp_cmdshell "@ECHO test message > c:\temp\newtemp.txt"The command inside the xp_cmdshell command runs successfully from aWindows command prompt. Simpler commands also fail with the same errormessage. For example:xp_cmdshell 'dir'Can anyone suggest a solution to this problem? I assume this problem isdue to a permissions/security issue. I have given Everyone Full Controlover c:\temp.Windows 2000SQL Server 2000Thanks for any help.
Or from QA as EXEC master..xp_cmdshell 'Dir C:\*.*'Brett8-)
Chris Allison
Starting Member
2 Posts
Posted - 2005-05-03 : 14:10:29
Using the following as you suggested results in the same error message for me:EXEC master..xp_cmdshell 'Dir C:\*.*'Msg 50001, Level 1, State 50001xpsql.cpp: Error 5 from CreateProcess on line 675Thanks though.Anyone else have any suggestions?