dbTalk Databases Forums  

Best Practice synchronizing data

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


Discuss Best Practice synchronizing data in the microsoft.public.sqlserver.dts forum.



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

Default Best Practice synchronizing data - 10-19-2004 , 04:15 PM






I have two seperate databases with different table names and column names.
One database runs a client's internal office functions. The other database
contains the clients e-store. When an order is entered/modified/ deleted it
needs to copy this change to the internal server and vice versa. I can't use
replication services because the tables and columns between databases are
different. Is dumping new/edited/deleted records in a temp table and running
a scheduled dts package the best way to accomplish this task. Or can I use
triggers to run between the two databases and accomplish this?

I would like to use triggers if possible to keep sync as real time as
possible. If triggers are possible can the reponder to this tell me how to
use triggers to affect two seperate databases or post some sample code.

Thanx in advance.
--
I just need the bear necessities

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

Default Re: Best Practice synchronizing data - 10-20-2004 , 02:22 PM






You could use replication + DTS (Ask on the replication NG - Hilary Cotter
or Paul Ibison)

DTS will also do it for you but it is not a real-time solution.

Triggers? Problem there is on a heavy transacted system they will cost in
performance.



--
--

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


"Mad Matt" <MadMatt (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have two seperate databases with different table names and column names.
One database runs a client's internal office functions. The other database
contains the clients e-store. When an order is entered/modified/ deleted
it
needs to copy this change to the internal server and vice versa. I can't
use
replication services because the tables and columns between databases are
different. Is dumping new/edited/deleted records in a temp table and
running
a scheduled dts package the best way to accomplish this task. Or can I use
triggers to run between the two databases and accomplish this?

I would like to use triggers if possible to keep sync as real time as
possible. If triggers are possible can the reponder to this tell me how to
use triggers to affect two seperate databases or post some sample code.

Thanx in advance.
--
I just need the bear necessities



Reply With Quote
  #3  
Old   
Mad Matt
 
Posts: n/a

Default Re: Best Practice synchronizing data - 10-20-2004 , 02:39 PM



Thanx,

Two questions still though.

First question, I am fairly new to the forums (Ask on the replication NG -
Hilary Cotter or Paul Ibison). I'm assuming this means to ask in the sql
server replication group but how do I the above people directly.

Second, would using triggers to activate DTS be as intensive as just
triggers alone. If not how do I activate a DTS package with a trigger. I know
you can do it with xp_cmdshell but haven't been come up with the correct way
to implement this in a trigger.

Thanx again in Advance,

"Allan Mitchell" wrote:

Quote:
You could use replication + DTS (Ask on the replication NG - Hilary Cotter
or Paul Ibison)

DTS will also do it for you but it is not a real-time solution.

Triggers? Problem there is on a heavy transacted system they will cost in
performance.



--
--

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


"Mad Matt" <MadMatt (AT) discussions (DOT) microsoft.com> wrote in message
news:18F6DBB0-4CF7-44F2-B3C4-3F0BF1A75729 (AT) microsoft (DOT) com...
I have two seperate databases with different table names and column names.
One database runs a client's internal office functions. The other database
contains the clients e-store. When an order is entered/modified/ deleted
it
needs to copy this change to the internal server and vice versa. I can't
use
replication services because the tables and columns between databases are
different. Is dumping new/edited/deleted records in a temp table and
running
a scheduled dts package the best way to accomplish this task. Or can I use
triggers to run between the two databases and accomplish this?

I would like to use triggers if possible to keep sync as real time as
possible. If triggers are possible can the reponder to this tell me how to
use triggers to affect two seperate databases or post some sample code.

Thanx in advance.
--
I just need the bear necessities




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

Default Re: Best Practice synchronizing data - 10-20-2004 , 02:57 PM



1. Chances are that if you post in the Replication NG paul or Hilary will
pick it up anyway.
2. You can implement DTS through a trigger but this means calling an
external COM process for what? Every row inserted? Intensive !

How can I execute a DTS package from a trigger
(http://www.sqldts.com/default.aspx?219)

--
--

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


"Mad Matt" <MadMatt (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanx,

Two questions still though.

First question, I am fairly new to the forums (Ask on the replication NG -
Hilary Cotter or Paul Ibison). I'm assuming this means to ask in the sql
server replication group but how do I the above people directly.

Second, would using triggers to activate DTS be as intensive as just
triggers alone. If not how do I activate a DTS package with a trigger. I
know
you can do it with xp_cmdshell but haven't been come up with the correct
way
to implement this in a trigger.

Thanx again in Advance,

"Allan Mitchell" wrote:

You could use replication + DTS (Ask on the replication NG - Hilary
Cotter
or Paul Ibison)

DTS will also do it for you but it is not a real-time solution.

Triggers? Problem there is on a heavy transacted system they will cost
in
performance.



--
--

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


"Mad Matt" <MadMatt (AT) discussions (DOT) microsoft.com> wrote in message
news:18F6DBB0-4CF7-44F2-B3C4-3F0BF1A75729 (AT) microsoft (DOT) com...
I have two seperate databases with different table names and column
names.
One database runs a client's internal office functions. The other
database
contains the clients e-store. When an order is entered/modified/
deleted
it
needs to copy this change to the internal server and vice versa. I
can't
use
replication services because the tables and columns between databases
are
different. Is dumping new/edited/deleted records in a temp table and
running
a scheduled dts package the best way to accomplish this task. Or can I
use
triggers to run between the two databases and accomplish this?

I would like to use triggers if possible to keep sync as real time as
possible. If triggers are possible can the reponder to this tell me how
to
use triggers to affect two seperate databases or post some sample code.

Thanx in advance.
--
I just need the bear necessities






Reply With Quote
  #5  
Old   
Mad Matt
 
Posts: n/a

Default Re: Best Practice synchronizing data - 10-20-2004 , 03:05 PM



Thanx Allan,

Will post in the Replication NG

"Allan Mitchell" wrote:

Quote:
1. Chances are that if you post in the Replication NG paul or Hilary will
pick it up anyway.
2. You can implement DTS through a trigger but this means calling an
external COM process for what? Every row inserted? Intensive !

How can I execute a DTS package from a trigger
(http://www.sqldts.com/default.aspx?219)

--
--

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


"Mad Matt" <MadMatt (AT) discussions (DOT) microsoft.com> wrote in message
news:A7D08ED2-92F2-47D7-B5B2-F1C72A777DDC (AT) microsoft (DOT) com...
Thanx,

Two questions still though.

First question, I am fairly new to the forums (Ask on the replication NG -
Hilary Cotter or Paul Ibison). I'm assuming this means to ask in the sql
server replication group but how do I the above people directly.

Second, would using triggers to activate DTS be as intensive as just
triggers alone. If not how do I activate a DTS package with a trigger. I
know
you can do it with xp_cmdshell but haven't been come up with the correct
way
to implement this in a trigger.

Thanx again in Advance,

"Allan Mitchell" wrote:

You could use replication + DTS (Ask on the replication NG - Hilary
Cotter
or Paul Ibison)

DTS will also do it for you but it is not a real-time solution.

Triggers? Problem there is on a heavy transacted system they will cost
in
performance.



--
--

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


"Mad Matt" <MadMatt (AT) discussions (DOT) microsoft.com> wrote in message
news:18F6DBB0-4CF7-44F2-B3C4-3F0BF1A75729 (AT) microsoft (DOT) com...
I have two seperate databases with different table names and column
names.
One database runs a client's internal office functions. The other
database
contains the clients e-store. When an order is entered/modified/
deleted
it
needs to copy this change to the internal server and vice versa. I
can't
use
replication services because the tables and columns between databases
are
different. Is dumping new/edited/deleted records in a temp table and
running
a scheduled dts package the best way to accomplish this task. Or can I
use
triggers to run between the two databases and accomplish this?

I would like to use triggers if possible to keep sync as real time as
possible. If triggers are possible can the reponder to this tell me how
to
use triggers to affect two seperate databases or post some sample code.

Thanx in advance.
--
I just need the bear necessities







Reply With Quote
  #6  
Old   
Mad Matt
 
Posts: n/a

Default Re: Best Practice synchronizing data - 10-20-2004 , 03:07 PM



Thanx Alan,

Will post to the Replication NG.

"Allan Mitchell" wrote:

Quote:
1. Chances are that if you post in the Replication NG paul or Hilary will
pick it up anyway.
2. You can implement DTS through a trigger but this means calling an
external COM process for what? Every row inserted? Intensive !

How can I execute a DTS package from a trigger
(http://www.sqldts.com/default.aspx?219)

--
--

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


"Mad Matt" <MadMatt (AT) discussions (DOT) microsoft.com> wrote in message
news:A7D08ED2-92F2-47D7-B5B2-F1C72A777DDC (AT) microsoft (DOT) com...
Thanx,

Two questions still though.

First question, I am fairly new to the forums (Ask on the replication NG -
Hilary Cotter or Paul Ibison). I'm assuming this means to ask in the sql
server replication group but how do I the above people directly.

Second, would using triggers to activate DTS be as intensive as just
triggers alone. If not how do I activate a DTS package with a trigger. I
know
you can do it with xp_cmdshell but haven't been come up with the correct
way
to implement this in a trigger.

Thanx again in Advance,

"Allan Mitchell" wrote:

You could use replication + DTS (Ask on the replication NG - Hilary
Cotter
or Paul Ibison)

DTS will also do it for you but it is not a real-time solution.

Triggers? Problem there is on a heavy transacted system they will cost
in
performance.



--
--

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


"Mad Matt" <MadMatt (AT) discussions (DOT) microsoft.com> wrote in message
news:18F6DBB0-4CF7-44F2-B3C4-3F0BF1A75729 (AT) microsoft (DOT) com...
I have two seperate databases with different table names and column
names.
One database runs a client's internal office functions. The other
database
contains the clients e-store. When an order is entered/modified/
deleted
it
needs to copy this change to the internal server and vice versa. I
can't
use
replication services because the tables and columns between databases
are
different. Is dumping new/edited/deleted records in a temp table and
running
a scheduled dts package the best way to accomplish this task. Or can I
use
triggers to run between the two databases and accomplish this?

I would like to use triggers if possible to keep sync as real time as
possible. If triggers are possible can the reponder to this tell me how
to
use triggers to affect two seperate databases or post some sample code.

Thanx in advance.
--
I just need the bear necessities







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.