XP.CMDSHELL and SQL Server Problem

Trying to run the following command in SQL Server 2005:

declare @cmd char(300)
SET @cmd = 'bcp scout.dbo.woheader in c:DCT\SCOUT\woheader.mobile.492 -t^| -Sdevserver\cdi2 -Usa -Pcv1 -c'
EXEC master..xp_cmdshell @cmd

Get the error message:  
SQLState = HY000, NativeError = 0
Error = [Microsoft][SQL Native Client]Unable to open BCP host data-file
NULL

Any suggestions ?
rhhuntAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mastooConnect With a Mentor Commented:
Don't you want another slash like this: C:\DCT\SCOUT  
And that refers to a directory on the database server?
0
All Courses

From novice to tech pro — start learning today.