dbTalk Databases Forums  

Updating DB with values depending on Key Value

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


Discuss Updating DB with values depending on Key Value in the microsoft.public.sqlserver.dts forum.



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

Default Updating DB with values depending on Key Value - 05-04-2004 , 08:31 AM






I have worked with DTS before, but usually just to import Access dbs to SQL
Server. This time it is different. I have a table for positions
(employment) and when I was hired, this table was incomplete. I have
tracked down the data I need and it is in an Access DB. The source DB was
done by someone who doesn't know much about how databases should be
structured.

The source data has 1 table, with employee info and position info. I need
to get the position data out and import it into my position table.

Here is my source query.... very simple

SELECT DISTINCT posnumber, jobrole, jobtitle
FROM Employees

I need to get this data into an existing table on the SQL Server. The
position number is already entered, so I need to update the Role and Title
fields with the data. Is there anyway to do this...

In other words, PosNum 000003 has a role of Admin and Office Specialist III
and a title of Director's Secretary... The 000003 is already in the
destination db so I need to find that record and insert the role and title
data...

Does this make sense?

Thanks,
Drew



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.