Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Batch Insert - newbie stuff
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01148018
Message ID:
01148243
Views:
13
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform