Advertisement

09.15.2005 at 05:39PM PDT, ID: 21563391
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

BULK Insert

Asked by Danielcmorris in MS SQL Server

Tags: , ,

Ok folks, Here's my situation.

Tomorrow I have to go and interview with the IT guy at a large company and convince him that I can do his project.  They download a zip file with 30,000,000 records and about 20 columns each day.  They extract the text file it contains, then import it into SQL Server, replacing yesterday's import.  They say the import process takes them about 4 hrs and they want it faster.  

Of course, like usual, I told them, "sure.  I'll be in tomorrow and take care of it."  

Then again.....I've never had to deal with tables of more than 50k records or so.  At that size, SQL Server doesn't even show a load when I reindex or run horribly inefficient queries.  With SQL Server rather than Access, I can spend 90% of my time on the interface and clean up the SQL as necessary.  This is going to be QUITE a bit different.

I can't remember the last time I did a DTS package!  I vaguely remember something about BULK INSERT, but I'm going to have to do some cramming tonight.  

Finally, they want to automate the entire process.  So here is my plan and I though maybe you'd be able to offer a few different options if the IT guy in the second interview has questions.

1. make a script that logs into their main FTP server and downloads the file.
2. add a line to unzip the file using pkunzip or, if they have it, the command line options for winzip
3. create a dts package that executes this script
4. followed by a truncate table on the existing table
5. followed by a BULK INSERT
6. schedule it to start at 3am

(remember, I don't know ANYTHING (hardware, CPU, etc) other than what I have written here)

thanks for your suggestions!
Start Free Trial
[+][-]09.15.2005 at 06:30PM PDT, ID: 14894782

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: dts, file, ftp
Sign Up Now!
Solution Provided By: acperkins
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.15.2005 at 10:58PM PDT, ID: 14895713

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.16.2005 at 01:18AM PDT, ID: 14896242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.19.2005 at 07:28AM PDT, ID: 14912074

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42