dbTalk Databases Forums  

Re: simple Excel import to master-detail tables

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Re: simple Excel import to master-detail tables in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JFB
 
Posts: n/a

Default Re: simple Excel import to master-detail tables - 01-05-2005 , 10:07 PM






Hi,
Probably you can use lookups...
http://www.sqldts.com/default.aspx?277
Rgds
JFB

"SÁRINGER Zoltán" <kecskemetisrac (AT) free-mail (DOT) hu> wrote

Quote:
Hello,

I have a similar excel sheet:

company_name site_name
CompA site1,site2,site3
CompB site4,site1
CompA site5
...

I want to transform into sql "company" and "site" sql tables. (each tables
have uniqueidentifier ID column and the "name" column)
company: ID, name
site: ID, company_ID, name

the transform should do:
- automatically insert detail table rows: insert company_ID too
- do not allow duplicates of companies (by Index constraint, or how?)

If it is simplier to do it by ActiveX script, it would be better... just
send me an example, please!




--
kecskemetisrac (AT) free-mail (DOT) hu
remove "-" from email address when reply.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.