Groups | Blog | Home
all groups > sql server dts > january 2005 >

sql server dts : simple Excel import to master-detail tables


JFB
1/5/2005 11:07:44 PM
Hi,
Probably you can use lookups...
http://www.sqldts.com/default.aspx?277
Rgds
JFB

[quoted text, click to view]

SÁRINGER Zoltán
1/5/2005 11:20:26 PM
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@free-mail.hu
remove "-" from email address when reply.


AddThis Social Bookmark Button