December 5, 2007 at 2:44 am
bcp.exe Testdatabase.dbo.test in 1.txt -S Anand -U kumar -P kumar -t "," -r "" -c'
For the above bcp command to load a file into clustered SQLSERVER, the following error is shown
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Reply With Quote
December 6, 2007 at 12:36 am
Does 1.txt exist in the same directory as where you are running the command from? You'd be better off using a full path name or, if not on the server, a full UNC.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2008 at 7:58 am
Hi Sorry for the delayed response. I tried with the absolute path but i got the same error
bcp.exe Testdatabase.dbo.test in C:/1.txt -S Anand -U kumar -P kumar -t "," -r "" -c'
Please help
February 8, 2008 at 9:02 am
You need quotes around the path
bcp.exe Testdatabase.dbo.test in "C:/1.txt" -S Anand -U kumar -P kumar -t "," -r "" -c'
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply