all groups > sql server replication > october 2004 >
You're in the

sql server replication

group:

Need help figuring out which replication type and options to use.


Need help figuring out which replication type and options to use. Girish
10/28/2004 6:11:32 PM
sql server replication:
I have two databases Im testing a replication setup on.

PrivateDB and PublicDB.

Both the database schemas are the same and I have on table in them called

CostInfo
---------
ID int
Cost money
Description nvarchar(500)


1) I want to setup bidirectional replication between both these databases.
Any updates to the subscriber must be propogated to the Publisher.
2) I want the "Cost" column to be the only column that is not
bi-directional. Meaning I want valid entries to only exist in the PrivateDB.
3) I cannot change the schema of PublicDB - it has to be the same as
PrivateDB. So I cannot remove the Cost column from there and implement
replication for example.
4) I dont mind transforming data(DTS) from the PrivateDB to the PublicDB and
store all Cost info in the PublicDB as Zero or NULL.
5) If a new record is added to the PublicDB to the CostInfo table, then I
want the record to be inserted without any transformations to he PrivateDB.

My PrivateDB is highly readonly - but the Cost column is the only one that
will change most of the time. New records can also be added here.
My PublicDB will have most of the bulk of the CRUD operations except for the
Cost column.

Ive tried Merge Replication, but it requires me to have a different schema
for both my databases if I do vertical partitioning.
Ive tried Transcation Replication with DTS but it does not allow me to
create updatable subscribers.

Im clueless! Im thinking this is a simple thing to do! I only see
bi-directional transactional replication as a soln from my reading - but i
dont want to implement confilict detection/resolution etc myself!

Any help would be appreciated.

Thanks,
Girish

RE: Need help figuring out which replication type and options to use. v-mingqc NO[at]SPAM online.microsoft.com (
11/1/2004 7:34:35 AM
Hi Girish,

Thanks for your post.

From your descriptions, I understood that you would like to create a
bidirectional replication between PrivateDB and PublicDB, while Cost column
is not necessary to be bi-directional. Have I understood you? Correct me if
I was wrong.

Based on my scope, it seems you have a custom sychronization mechanism and
SQL Server do not have a existing one to meet the requirement directly. I
am afraid it is not possible to do so.

However, here is two workaround doing so

1. Make your own sychronization mechanism by CREATE TRIGGER on the both
side, which might be costing

2. Create CostInfo2 in PrivateDB and make the bidirectional transactional
replication on the machine between CostInfo in PublicDB and CostInfo2 in
PrivateDB. Modifications in PrivateDB will be upgrade to CostInfo2
selectively (ignore the changes in Cost Column in CostInfo). If you could
add one more table in PrivateDB

Here is the Knowledge Base on how to setup bidirectional replication for
your reference

How To Implement Bidirectional Transactional Replication
http://support.microsoft.com/?id=820675

Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!


Sincerely yours,

Michael Cheng

Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---------------------------------------------------------------
Get Secure! - http://www.microsoft.com/security

This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!
Re: Need help figuring out which replication type and options to use. Girish
11/1/2004 11:32:08 AM
Would this be supported in SQL Server 2005?

Girish


[quoted text, click to view]

Re: Need help figuring out which replication type and options to use. v-mingqc NO[at]SPAM online.microsoft.com (
11/2/2004 5:57:33 AM
Hi Girish,

Currently, SQL Server 2005's questions are not supported in this newsgroup,
you could go the the following links to discuss this with the development
team

Welcome to the Microsoft SQL Server 2005 Beta 2 Newsgroups
http://communities.microsoft.com/newsgroups/default.asp?icp=sqlserver2005&sl
cid=us

Anyway, as far as I know, unfortunately, it won't be supported in Yukon.

Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!


Sincerely yours,

Michael Cheng

Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---------------------------------------------------------------
Get Secure! - http://www.microsoft.com/security

This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!
AddThis Social Bookmark Button