dbTalk Databases Forums  

Newbie normalization question

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


Discuss Newbie normalization question in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
msnews.microsoft.com
 
Posts: n/a

Default Newbie normalization question - 05-07-2004 , 05:07 PM






I'd like to know if it is possible to do very limited normalization tasks
using the DTS designer.

I've inherited a table:

tblGarbage
-------
field1
field2
field3

I want to map this into my relational database :

tblPersons
------------
Per_PersonID
Per_GivenName
.....

tblPersons_PersonsCategories
-------------------
Per_PersonID
PerCatID

For each row in tblGarbage, I want to map fields into tblPersons, copy the
just-created Per_PersonID to tblPersons_PersonsCategories, and enter a
hardcoded value, say, "2", to PerCatID.

I know how I could script this using something like ASP. Is it possible to
do this sort of simple task with the DTS designer?

Thanks in advance.

-KF




Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: Newbie normalization question - 05-07-2004 , 05:15 PM






Heh. Sorry about the funky account/user name on that post.

-KF


"msnews.microsoft.com" <kenfine@u.washington.edu> wrote

Quote:
I'd like to know if it is possible to do very limited normalization tasks
using the DTS designer.

I've inherited a table:

tblGarbage
-------
field1
field2
field3

I want to map this into my relational database :

tblPersons
------------
Per_PersonID
Per_GivenName
....

tblPersons_PersonsCategories
-------------------
Per_PersonID
PerCatID

For each row in tblGarbage, I want to map fields into tblPersons, copy the
just-created Per_PersonID to tblPersons_PersonsCategories, and enter a
hardcoded value, say, "2", to PerCatID.

I know how I could script this using something like ASP. Is it possible to
do this sort of simple task with the DTS designer?

Thanks in advance.

-KF






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

Default Re: Newbie normalization question - 05-08-2004 , 02:44 AM



It certainly is possible.

You can use Lookups or you could, as I would do, run over your data twice

Run 1: Insert into the tblpersons entity.
Run2: Insert into the tblPersons_PersonsCategories entity by joining your
Garbage entity onto the tblpersons entity and retrieving the attribute
values you require.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"msnews.microsoft.com" <kenfine@u.washington.edu> wrote

Quote:
I'd like to know if it is possible to do very limited normalization tasks
using the DTS designer.

I've inherited a table:

tblGarbage
-------
field1
field2
field3

I want to map this into my relational database :

tblPersons
------------
Per_PersonID
Per_GivenName
....

tblPersons_PersonsCategories
-------------------
Per_PersonID
PerCatID

For each row in tblGarbage, I want to map fields into tblPersons, copy the
just-created Per_PersonID to tblPersons_PersonsCategories, and enter a
hardcoded value, say, "2", to PerCatID.

I know how I could script this using something like ASP. Is it possible to
do this sort of simple task with the DTS designer?

Thanks in advance.

-KF






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.