Do not use on any
shared computer
August 30, 2008 12:11am pdt
 
[x]
Attachment Details

Missing records importing ASCII to SQL2k5 with BI Studio

Tags: file, import, sql
Hi.

I have to import an ASCII flat file containing a bit more than 300,000 records into SQL server 2005. As the legacy DTS approach did not succeed (product not having the sufficient "level"), I went for learning how to use the business intelligence studio. Now the package is ready.

After executing it, I can only find about 200,000 records in the table. Somehow a third of the data is being ignored during the process. I guess there must be a missing parameter somewhere, but I have no clue where.

Does anyone have a hint? I would like *not* to go through the process of defining the columns to split the undelimited text file any more, as I got 500ish characters in one row divided into 150ish fields (columns). It is using ragged row option.

Also I would like to build a stored proc to rename the columns after creation (ie Column o --> QstNb, eg). This code returns the following error:

EXEC sp_rename 'GAPAddresses.[R2003_2007].[Column 0]', 'Qstnb', 'COLUMN'
Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong.

I wouldn't mind a clue for that one neither.

Thanks

Vincent.
Start your free trial to view this solution
[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!

Question Stats
Zone: Web Development
Question Asked By: Beringhs
Solution Provided By: patrikt
Participating Experts: 1
Solution Grade: B
Views: 4
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by patrikt

Rank: Guru

Expert Comment by patrikt:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by Beringhs
Author Comment by Beringhs:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by patrikt

Rank: Guru

Expert Comment by patrikt:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by Beringhs
Author Comment by Beringhs:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by patrikt

Rank: Guru

Expert Comment by patrikt:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by Beringhs
Author Comment by Beringhs:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by patrikt

Rank: Guru

Accepted Solution by patrikt:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34