Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Batch Insert - newbie stuff
Message
 
 
À
24/08/2006 11:23:47
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:
01148243
Vues:
14
Any time. :)

>Thanks again Sergey, you are a life saver!
>
>>
>>The text file doesn't have prefix for text field so it should be 0 in .FMT file. The following works
>>-- .FMT
>>8.0
>>2
>>1	SQLCHAR	0	18	"\t"	1	sku1	SQL_Latin1_General_CP1_CI_AS
>>2	SQLCHAR	0	0	"\r\n"	2	biblio	SQL_Latin1_General_CP1_CI_AS
>>-- .SQL
>>bulk insert dbo.Annotation from 'H:\TMP\bcp\test.txt'
>>WITH (
>>	fORMATFILE = 'H:\TMP\bcp\ANNOTATIONS.FMT'
>>  )
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform