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.
| Author |
Topic |
|
hemanthvh
Starting Member
3 Posts |
Posted - 2007-11-20 : 23:14:30
|
| i am Hemanth i have written a query for bulk insert , it is ofBULK INSERT DTSTEST..FBM FROM 'c:\FBM1.TXT' WITH ( BATCHSIZE = 100000, CHECK_CONSTRAINTS, DATAFILETYPE = 'char', KEEPIDENTITY, KEEPNULLS, ROWTERMINATOR = '\n', FIELDTERMINATOR = '|' )this query is throwing an error msg"Msg 4860, Level 16, State 1, Line 1Cannot bulk load. The file "c:\FBM1.TXT" does not exist."but the file is present in c drive.please help me in resolving this issue.Thanks & RegardsHemanth |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-11-20 : 23:17:53
|
the PATH is on the Server not your local. Is the file on the Server's C drive ? KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
hemanthvh
Starting Member
3 Posts |
Posted - 2007-11-20 : 23:19:59
|
| ya file is on server c drive itself |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-11-20 : 23:26:47
|
try this to make sure it is there xp_cmdshell 'DIR C:\FBM1.TXT' KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
hemanthvh
Starting Member
3 Posts |
Posted - 2007-11-20 : 23:38:15
|
| After placing FBM.txt on server my query is working. |
 |
|
|
|
|
|
|
|