Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Table replication question

 
   Database Forums (Home) -> General Discussions RSS
Next:  Slow performance in SQL2005  
Author Message
zgb

External


Since: Feb 19, 2008
Posts: 6



(Msg. 1) Posted: Tue Feb 19, 2008 8:47 am
Post subject: Table replication question
Archived from groups: comp>databases>ms-sqlserver (more info?)

Hi, I'm using MS SQL server 2005.

I have two identical databases - with one exception: they have different
names (etc database1 and databse2), but their structure is completely same.

Is it possible to replicate one table between those databases?

Regards

 >> Stay informed about: Table replication question 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 1649



(Msg. 2) Posted: Tue Feb 19, 2008 10:21 pm
Post subject: Re: Table replication question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

zgb (zgb23@vip.hr) writes:
> I have two identical databases - with one exception: they have different
> names (etc database1 and databse2), but their structure is completely
> same.
>
> Is it possible to replicate one table between those databases?

Could you give more details about your requirements? What more exactly
do what to achieve?

Which version on SQL Server?

Are the databases on the same server?

Do you need the replication to be syncronous, or can you accept a lag?

Do you want to replicate data in both directions?

Are the tables victims to massive concurrent updating?

Sorry for asking all these questions, but there are several options,
but not all may be suitable to you.
--
Erland Sommarskog, SQL Server MVP, esquel RemoveThis @sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 >> Stay informed about: Table replication question 
Back to top
Login to vote
zgb

External


Since: Feb 19, 2008
Posts: 6



(Msg. 3) Posted: Wed Feb 20, 2008 8:59 am
Post subject: Re: Table replication question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Erland Sommarskog wrote:
> zgb (zgb23@vip.hr) writes:
>> I have two identical databases - with one exception: they have different
>> names (etc database1 and databse2), but their structure is completely
>> same.
>>
>> Is it possible to replicate one table between those databases?
>
> Could you give more details about your requirements? What more exactly
> do what to achieve?
>
> Which version on SQL Server?
>
> Are the databases on the same server?
>
> Do you need the replication to be syncronous, or can you accept a lag?
>
> Do you want to replicate data in both directions?
>
> Are the tables victims to massive concurrent updating?
>
> Sorry for asking all these questions, but there are several options,
> but not all may be suitable to you.
SQL server is version 2005.

I will simplify configuration:
I have two pairs of master - backup servers, each pair is replicated in
both directions (merge replication). Let's call them master1, backup1
and master2, backup2.

Also I have two rooms, room1 (here are master1 and backup1) and room2
(here are master2 and backup2). Databases on all four servers have
completely same structure, but databases in room1 have name db1, in
room2 db2. Between two rooms there is no any replication, imagine two
systems that are working completely separated, each in his own room.

What I want to do is establish replication between two rooms but in way
to replicate only one table - I'll call it myTable. As databases are
identical I have myTable on all four servers. Problem are names of
databases (on room level). Also complete replication inside room1 and
inside room2 must remain. Unfortunately I can't rename databases.

So, result must be: both direction replicated databases on master1 and
backup1, both direction replicated databases on master2 and backup2,
myTable replicated on all four servers.

Table is not victim of massive concurrent updating.
 >> Stay informed about: Table replication question 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 1649



(Msg. 4) Posted: Wed Feb 20, 2008 10:45 pm
Post subject: Re: Table replication question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

zgb (zgb23@vip.hr) writes:
> I will simplify configuration:
> I have two pairs of master - backup servers, each pair is replicated in
> both directions (merge replication). Let's call them master1, backup1
> and master2, backup2.
>
> Also I have two rooms, room1 (here are master1 and backup1) and room2
> (here are master2 and backup2). Databases on all four servers have
> completely same structure, but databases in room1 have name db1, in
> room2 db2. Between two rooms there is no any replication, imagine two
> systems that are working completely separated, each in his own room.
>
> What I want to do is establish replication between two rooms but in way
> to replicate only one table - I'll call it myTable. As databases are
> identical I have myTable on all four servers. Problem are names of
> databases (on room level). Also complete replication inside room1 and
> inside room2 must remain. Unfortunately I can't rename databases.
>
> So, result must be: both direction replicated databases on master1 and
> backup1, both direction replicated databases on master2 and backup2,
> myTable replicated on all four servers.

Thanks for the details! I am very glad that I did not offer any
suggestions to the first question, becase they would all be off.

I would suggest that you post your question to
microsoft.public.sqlserver.replication, where I believe some people
with very good experience of replication hangs out.



--
Erland Sommarskog, SQL Server MVP, esquel.RemoveThis@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 >> Stay informed about: Table replication question 
Back to top
Login to vote
zgb

External


Since: Feb 19, 2008
Posts: 6



(Msg. 5) Posted: Thu Feb 21, 2008 12:14 am
Post subject: Re: Table replication question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Erland Sommarskog wrote:
> zgb (zgb23@vip.hr) writes:
>> I will simplify configuration:
>> I have two pairs of master - backup servers, each pair is replicated in
>> both directions (merge replication). Let's call them master1, backup1
>> and master2, backup2.
>>
>> Also I have two rooms, room1 (here are master1 and backup1) and room2
>> (here are master2 and backup2). Databases on all four servers have
>> completely same structure, but databases in room1 have name db1, in
>> room2 db2. Between two rooms there is no any replication, imagine two
>> systems that are working completely separated, each in his own room.
>>
>> What I want to do is establish replication between two rooms but in way
>> to replicate only one table - I'll call it myTable. As databases are
>> identical I have myTable on all four servers. Problem are names of
>> databases (on room level). Also complete replication inside room1 and
>> inside room2 must remain. Unfortunately I can't rename databases.
>>
>> So, result must be: both direction replicated databases on master1 and
>> backup1, both direction replicated databases on master2 and backup2,
>> myTable replicated on all four servers.
>
> Thanks for the details! I am very glad that I did not offer any
> suggestions to the first question, becase they would all be off.
>
> I would suggest that you post your question to
> microsoft.public.sqlserver.replication, where I believe some people
> with very good experience of replication hangs out.
>
>
>
I will try at suggested group, thank you for your effort, you are very kind.

Regards
 >> Stay informed about: Table replication question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
simple SQL question to insert records in an existing table.. - Hi, I would like to know how to modify the following selects so that - assuming that NewTable already exists - the result of the SELECT is appended to the existing table. If possible I need the appropriate changes for both the 2 syntax below. -1- SELEC...

simple ALTER Table query question...SQL 2000. - Ok I have a table with fields as follows: field1 varchar(10) field2 varchar(10) field3 varchar(10) Identity int Indenity field I want to create a ALTER table to add fields field2a and field2b right after field2 and not at the end of the table. Any..

REPLICATION - hi all i have three server each server have DB for replication EX Three DB's A B C A is replicated to B B is replicated to C in this case how am alter a column size in A,B and C for replicated article In publication properties in article its drop..

SQL 2005: Transactional Replication > Executing sp on subs.. - Hi, I am trying to set up a Updatable Subscriptions for Transactional Replication with SQL 2005 (queued updating). I have a stored procedure "SYS_spShellTest" which is replicated to the subscriber via the replication option "Execution of...

Create Table with Variable included in Table Name - Hi, I am trying to create a routine for generating tables from a master response table. The end result would increment the variable "somevalue" by one and then create the next table (ie: TESTTEST2). Is there a way to insert the variable into...
   Database Forums (Home) -> General Discussions All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]