this command:
bcp MyDatabase..MyTable in Data\2005\MyFile.bcp.dat /f bcp.fmt /S MyServer /U sa
runs fine when run from its original location on a network drive.
When we copy the files referenced down to the C: drive and execute the command (with the path adjusted appropriately) and run the command I get an error:
Unable to open BCP host data-file
both MyFile.bcp.dat and bcp.fmt exist in the locations specified in the new command line. MyTable exists in MyDatabase. Etc. etc.
Why do we get this error? Are there other files secretly needed?
Thanks,
Jon
hi i 'm also facing the same problem could anybody reply if u have the solution...
i have tried bcp out command to a network drive which give the error
sql state = s1000
could not open host data file
please do help me.
jollyguyjolly@.hotmail.com
没有评论:
发表评论