Solved

Import tables from multiple mdb into SQL using SSIS 2005

Posted on 2011-02-26
6
794 Views
Last Modified: 2013-11-10
What is the best way to import tables (Total 7) from Access databases into one SQL table.  I am using SSIS and created a connection to each of the databases. Not all of the tables have the same columns.  Each import has its own container - with sql tasks and aggregations.  Problems with the data types converting - so instead importing into temp table with char datatypes - then inserting the data into the sql table. Is there a  better way to do this in SSIS? Also, need help with counting the records imported and date of import in ssis and exporting to Excel. thx bb
0
Comment
Question by:bar0822
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 34987206
>> Problems with the data types converting - so instead importing into temp table with char datatypes - then inserting the data into the sql table. Is there a  better way to do this in SSIS?

Best way is to populate records into temp table and then insert it into actual table..
0
 
LVL 30

Expert Comment

by:Reza Rad
ID: 34988128
If you looks for an automated way for all tables with different structures, you can't use SSIS Data Flow task, because it doesn't support dynamic meta data.
Is is "one time import" ?
I mean do you want to do this process just one time? or you need it later?
if this is one time job, you can use Import/Export wizard to import these data into sql server staging tables, and then you can query on these data and get result as you want .

But If you want to write a package to use it on timely basis, you need to create 7 source/transformation/destination. (because of different data structures)
0
 
LVL 7

Expert Comment

by:rmm2001
ID: 34989514
When you say " Problems with the data types converting - so instead importing into temp table with char datatypes - then inserting the data into the sql table" - are you putting a data conversion transformation from your access connection/transformations to your sql table? If not you should try putting a data conversion transformation before you draw the arrow to the sql connection to change the columns out of unicode. And then map the new converted columns into your table. control flow data conversion transformation
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:bar0822
ID: 35003381
This is not a one time import - scheduled to run monthly.  I tried the data transformation task and changed the type to DT_STR with the same length as the sql table and kept getting the same error message:  cannot change unicode to non unicode.  I was pulling my hair so I just gave up and went with the put data in temp table with char datatype fields and then into the sql table - this worked with the first table.  I am starting on importing my second table that has some of the fields as the first import.  I am looking to use the same package with a second data task flow in a second container - after the first import/container has finished, then start the second but I must do this for 7 imports - would it be more efficient / faster if I created separate packages for each and called them all from a main package?
regards,
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 35239552
No,

Best way is to use for each loop and get each *.mdb and insert data to table using dataflow task.
0
 

Author Closing Comment

by:bar0822
ID: 35432951
this was my first solution as described in my question but was looking for another way to do it.  I tried the data conversion process but there were too many errors and could not spend too much time on this.  So I went with my solution which was the same as Genius.
I appreciate the responses from all and they were all good.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question