SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 
        
Home       Members    Calendar    Who's On



SSIS import/export data between relational databases having different structure Expand / Collapse
Author
Message
Posted Thursday, July 03, 2008 8:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 25, 2009 7:08 AM
Points: 8, Visits: 17
hello All

I have two databases having different relational structure. I need to get one table from source db to 2 destination tables which are connected with a foreign key constraints. for e.g. I have

source tabe
Person (PersonId, Name, city, country, zip code, phone, email)

I need to get that in

destination tables
Person(PersonId, Name),
ContactInfo(ContactInfoId, city, country, zip, phone, email) and
PersonContact(PersonId, ContactInfoId)

Please let me know any idea how i can do this in SSIS studio. also I need to import this data after each 4-5 hours.

Regards
Rashmi
Post #528132
Posted Thursday, July 03, 2008 11:47 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Wednesday, July 01, 2009 12:21 PM
Points: 6,281, Visits: 3,254
In the data flow task, there are options to split data, add derived columns, etc. I think those are what you need.

- GSquared

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Post #528293
Posted Thursday, July 03, 2008 11:28 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 25, 2009 7:08 AM
Points: 8, Visits: 17
Thanks for the reply.

is there any way to do the transactional update in database. I mean i need to insert contactinfo first and then based on the identities returned need to populate other tables.

any idea?
Post #528487
Posted Friday, July 04, 2008 1:20 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 25, 2009 7:08 AM
Points: 8, Visits: 17
Can you explain bit more about it.
Post #528526
Posted Tuesday, July 08, 2008 11:24 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Wednesday, July 01, 2009 12:21 PM
Points: 6,281, Visits: 3,254
Yes, you can do the "insert this table first to get the IDs" thing.

Insert into a table, select from it, join it to the data you inserted from. Voila! You have your IDs.


- GSquared

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Post #530244
« Prev Topic | Next Topic »


Permissions Expand / Collapse