Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with bcp (again)
Message
 
 
To
22/12/2000 16:05:11
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
00456472
Message ID:
00459015
Views:
24
>Hi,
>
>I'm using the function bcp to transfer data from my table to a data file. When I use it at the dos command prompt, no problem everything works really well.
>
>But if I use query analyser I have an error: unable to open bcp host data-file.
>
>Here's the line:
>xp_cmdshell 'bcp table.owner.inventaire out c:\1\test.txt'
>
>The problem is not with xp_cmdshell because I can call simpler executables in query analyser.
>
>
>Thanks again!
>-Mic


When you run bcp at the dos command prompt it runs on a workstation.
With xp_cmdshell in query analyser it runs on SQL Server machine.
I guess you don't have subdirectory c:\1\ on it.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform