Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BULK INSERT Problem #2
Message
De
03/02/2009 16:43:03
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01379041
Message ID:
01379054
Vues:
21
>>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/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform