Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 BCP and xp_xmdshell

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-02-02 : 08:19:34
Broc writes "When I follow the layout from the following

http://www.sqlteam.com/item.asp?ItemID=4722

Ii get an error, that I cannot resolve.
The error is as follows:

SQLState = S1000, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]Unable to open BCP host data-file


Any Help with this would be appreciated

Thanks
Broc"

nr
SQLTeam MVY

12543 Posts

Posted - 2005-02-02 : 13:27:29
Means it can't open the file to import.
The file will be relative to the server so if it's not on the server it will need to access it via a share. Best to try a xp_cmdshell dir command to see if it can find it.
Have a look at
http://www.mindsdoor.net/SQLTsql/BCP_quoted_CSV_Format_file.html
For some things to test with.


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -