Hi,
I have a program that reads about 7000 records from a flatfile and inserts them into a SQL Server 2000 table. This takes about 2.5 minutes (using VB.NET). I was told that a Bulk Insert would be much faster.
All the examples I've seen have a FIELDTERMINATOR - I don't have any FIELDTERMINATORs in my file. It's a fixed-width flatfile.
example:
Can you do a bulk insert with a fixed-width file?
Any help would be appreciated!
Thanks in advance,
Suzanne
I have a program that reads about 7000 records from a flatfile and inserts them into a SQL Server 2000 table. This takes about 2.5 minutes (using VB.NET). I was told that a Bulk Insert would be much faster.
All the examples I've seen have a FIELDTERMINATOR - I don't have any FIELDTERMINATORs in my file. It's a fixed-width flatfile.
example:
Code:
JOE JONES ATLANTA GA
ROBERT SMITH TALLAHASSEE FL
NATALIE WILLIAMMIAMI FL
Can you do a bulk insert with a fixed-width file?
Any help would be appreciated!
Thanks in advance,
Suzanne