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 |
rajasekhar857
Constraint Violating Yak Guru
396 Posts |
Posted - 2009-03-26 : 01:48:17
|
Hi,i have did the following one--CREATE TABLE TO INSERT DATAcreate table EMRracelkup(RACE_ID NUMERIC(20), UNIQUE_IDENTIFIER VARCHAR(20), HIERARCHICAL_CODE VARCHAR(50), CONCEPT VARCHAR(50), STATUS NUMERIC(10) NULL)GO --BULK INSERT THE DATA FORM CSV FILEBULKINSERT EMRracelkupFROM 'c:\abc.txt'WITH(FIELDTERMINATOR = ',',ROWTERMINATOR = '\n')GO--CHECKONG THE DATA IN THE TABLESELECT * FROM EMRracelkupgoEXCEPTION ISMsg 4832, Level 16, State 1, Line 1Bulk load: An unexpected end of file was encountered in the data file.Msg 7399, Level 16, State 1, Line 1The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.Msg 7330, Level 16, State 2, Line 1Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".HOW TO RECTIFY THISand IAM GETTING ERROR LIKE |
|
|
|
|
|
|