dbTalk Databases Forums  

Transformation - Newbie

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


Discuss Transformation - Newbie in the microsoft.public.sqlserver.dts forum.



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

Default Transformation - Newbie - 10-21-2004 , 04:31 AM






Good Day All,

I have successfully managed to write load packages for data from
another source into SQL via DTS.

I have one 'master' table which needs the following type of
transformation though - and being very green, I am struggling to
figure out how to accomplish this through DTS:

Example: The original data source keeps say, the actual
DepartmentName as a value in it's 'master' table, I have split this in
my design (obviously) - so I need the incoming DepartmentName to be
checked against my Departments table and the DepartmentID for it to be
inserted into the 'master' table instead of the name (i.e. thus
creating my foreign key instead).

Can this be done in one foul swoop?! Please say yes . There are a
few "lookups" like this for my 'master' table.

Thank you in advance
Regards,
EvE
PS: If there are good sources for DTS related functionality that I
can have a look at, please throw them my way - I am quite willing to
figure it out myself with a teeny bit of guidance!

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Transformation - Newbie - 10-21-2004 , 03:33 PM






www.SQLDTS.com is a pretty good resource if I do say so myself.

Yes you can do it. Have a look at Lookups.

You may need to make > 1 pass but this is not a bad thing

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"EvE" <eve_calypso (AT) yahoo (DOT) com> wrote

Quote:
Good Day All,

I have successfully managed to write load packages for data from
another source into SQL via DTS.

I have one 'master' table which needs the following type of
transformation though - and being very green, I am struggling to
figure out how to accomplish this through DTS:

Example: The original data source keeps say, the actual
DepartmentName as a value in it's 'master' table, I have split this in
my design (obviously) - so I need the incoming DepartmentName to be
checked against my Departments table and the DepartmentID for it to be
inserted into the 'master' table instead of the name (i.e. thus
creating my foreign key instead).

Can this be done in one foul swoop?! Please say yes . There are a
few "lookups" like this for my 'master' table.

Thank you in advance
Regards,
EvE
PS: If there are good sources for DTS related functionality that I
can have a look at, please throw them my way - I am quite willing to
figure it out myself with a teeny bit of guidance!



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.