Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Batch Insert - newbie stuff
Message
 
 
À
24/08/2006 08:49:43
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01148018
Message ID:
01148177
Vues:
14
Glenn,

If those : characters are in the file you need to account for them. Are you sure the last line in the file meets the same spec as all the other rows? Use hexedit to verify it. You also have to make sure that no field in the file content actually exceeds the space allocated in the field. If you temporarily set your batchsize to 1 you should be able to tell which line is erroring out.

But this is one of the hardest things to debug because of the "extremely helpful" (marked sarcasm) error messages.

>I replaced the format file with your example and now I am getting the dreaded
>"Server: Msg 4832, Level 16, State 1, Line 1
>Bulk Insert: Unexpected end-of-file (EOF) encountered in data file."
>
>I have re-read all the documentation on bulk insert, using format file and still no cigar:<
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform