Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BULK INSERT Problem #2
Message
From
03/02/2009 16:43:03
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01379041
Message ID:
01379054
Views:
20
>>I'm trying to do a bulk insert:
>>
>>
>>BULK INSERT Import
>>   FROM 'c:\data.txt'
>>   WITH 
>>      (
>>         FIELDTERMINATOR ='|',
>>		 ROWTERMINATOR = '\r\n'
>>      )
>>
>>
>>I'm only getting the first row from the text file.
>
>Did you try to use \n for ROWTERMINATOR instead?

I played around with Bulk Insert a few weeks ago. In addition to what Naomi mentioned, you may want to check your rows to see if there is a "|" at the end of the row also. If there is, you will have to figure for that in your ROWTERMINATOR property.
Very fitting: http://xkcd.com/386/
Previous
Reply
Map
View

Click here to load this message in the networking platform