Peter:
I tried doing it from the command prompt and ran into problems, even when I
tried it on the same SQL Server 2000 database server that runs the DTS
Execute Process task just fine. So, I'm not sure what this test really
tells us.
For example, clsrv121 is the name of our production database server with SQL
Server 2000 and from which the DTS package can bcp files just fine. When I
open a command prompt and type the following:
[quoted text, click to view] > bcp "Select * From CTSreal..Employee" queryout c:\BcpTest.txt -Sclsrv121 -U -P -c -r \n -t \t
I get the following error:
"Copy direction must be either 'in' or 'out'. Syntax error in 'queryout'."
So, I changed the text "queryout" to just "out" and tried the following at
the command prompt:
[quoted text, click to view] > bcp "Select * From CTSreal..Employee" out c:\BcpTest.txt -Sclsrv121 -U -P -c -r \n -t \t
This time, I get the error message:
"CTLIB Message: ...
ct_connect(): directory service layer: internal directory control layer
error: Requested server name not found. Establishing connection failed."
I verified the typing of the server name several times and even re-typed the
entire string manually several time to make sure there was no typo.
I'm not sure what I am doing wrong at the command prompt, but I'm also not
sure what that tells us since I am able to get the DTS package to work on
that same server. And the server/issue I am struggling with is a different
server: SQL Server 2005 on a different PC and dealing with SSIS. See my
confusion?
--
- JJ, Eugene OR