hey there,
I have a simple table
intID IDENTITY
vchrMAP varchar
vchrBLOCK varchar
vchrLOT varchar
I'm using thru Query Analyzer the following:
bulk insert temptest from 'z:\book1.txt' with (formatfile='z:\test.fmt')
the formatfile is:
8.0
3
1 SQLCHAR 0 10 "," 2 vchrMAP SQL_Latin1_General_Cp1_CI_AS
2 SQLCHAR 0 10 "," 3 vchrBLOCK SQL_Latin1_General_Cp1_CI_AS
3 SQLCHAR 0 10 "\r\n" 4 vchrLOT SQL_Latin1_General_Cp1_CI_AS
and sample data from book1.txt is
201,1,0
201,2,0
201,3,0
201,4,0
201,5,0
201,6,0
book1.txt contains 2086 records.
When I run the procedure it runs fine without errors. The column data is
inserted into the proper fields HOWEVER the identity column which should
start at 1 and increment by 1 sporadically increments by different numbers.
Has anyone ever seen this before and can someone please tell me I just
forgot some setting to fix this? I need to import alot of data and having a
consistent numbering scheme is sorta what I need and I would rather NOT do
it myself.
Regards,
Christopher Klein
Point Software, Inc.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----