×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Help with a Bulk insert statement

Help with a Bulk insert statement

Help with a Bulk insert statement

(OP)
Hi,

I need to import a large .txt file into my SQL 2000 server, when i try using the wizard in Enterprise Manager i get an error when i reach the 7.5 million record mark. The error i get is the following:
"Not enough storage is available to process this command"
I have plenty of hard drive space on the server to import the file. The file is "Tab delimited" with "LF" row delimiter, I tried the following statement, but i need help with the correct syntax for the delimiter information.
"BULK INSERT table name FROM file name WITH (FIELDTERMANATOR = ',')

Thank you in advance for any help you can provide.

Best regards,

Rene

RE: Help with a Bulk insert statement

What's the recovery model on your DB? If you don't want to change it, can you try importing the data into a new database with bulk logged recovery? (See BOL if necessary regarding recovery modes).
Have you tried with specifying the batch size in the bulk insert command - say 50,000?

soi là, soi carré

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close