dbTalk Databases Forums  

What's DTS Best Practice for my problem

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


Discuss What's DTS Best Practice for my problem in the microsoft.public.sqlserver.dts forum.



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

Default What's DTS Best Practice for my problem - 11-04-2004 , 10:29 PM






Hi guys

Can anyone advise the best practise for developing DTS for my problem.

I have two MS SQL 2000 Sever DBs. One which we call WebCS is a duplication
of the other (CS) with a little change. The difference between two database
is a table. CS DB has tables called group (id, name, ostype), host (id,
hostname, location) and group_host (id, group_id, host_id).

In second DB (WebCS) we add a table called company (id, company_name) to
manage clients and modified the other two tables: group (id, name, ostype,
company_id) , host (id, hostname, location, company_id). company_id in both
tables are foreign keys for id in company table.

I need to update company_id in host table in WebCS based on comparing host
name and company_name and the same in group table.

We need to syncronise two DBs. Any help will be highly appreciated.

Thanks.

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

Default Re: What's DTS Best Practice for my problem - 11-05-2004 , 12:12 AM






Same server ?

Simply use 3 part naming

dbname.ownername.tablename

If they are different servers?

What about using a linked server ?

If you do not want to use any of the above then you can use a Data Driven
Query although I would generaly look to other options first



--
--

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


"Hami" <Hami (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi guys

Can anyone advise the best practise for developing DTS for my problem.

I have two MS SQL 2000 Sever DBs. One which we call WebCS is a duplication
of the other (CS) with a little change. The difference between two
database
is a table. CS DB has tables called group (id, name, ostype), host (id,
hostname, location) and group_host (id, group_id, host_id).

In second DB (WebCS) we add a table called company (id, company_name) to
manage clients and modified the other two tables: group (id, name, ostype,
company_id) , host (id, hostname, location, company_id). company_id in
both
tables are foreign keys for id in company table.

I need to update company_id in host table in WebCS based on comparing
host
name and company_name and the same in group table.

We need to syncronise two DBs. Any help will be highly appreciated.

Thanks.



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.