Thanks for your quick response. I now get
SQLState = 28000, NativeError = 18452
Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'DOWNLOAD'. Reason: Not associated with a trusted SQL Server connection.
NULL
Both executing this in the Command Prompt and in SQL Query Analyzer (the following code...
EXEC xp_cmdshell 'bcp "SELECT * FROM EPProduction..T_Products" queryout Test.txt -c -U DOWNLOAD -P pyramid -S ACM_NCL\EPINST'
Main Topics
Browse All Topics





by: amit_gPosted on 2005-02-21 at 11:02:15ID: 13365500
Add -S
]
-S server_name[\instance_name
bcp "SELECT * FROM pubs..authors" queryout authors.txt -U garth -P pw -c -S YourServerName