Home > Archive > MS SQL Server Replication > September 2005 > How to set Merge Repl properties for multiple servers?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to set Merge Repl properties for multiple servers?
dw

2005-09-12, 1:23 pm

Hello...

Currently we have merge replication set up between SQL 2000 and mobile
devices running SQL CE 2.0...and some with SQL Mobile.

As part of the logic on the device, we have to set some properties for the
SqlCeReplication object. Some of these we make dynamic, like the
publication, login, etc.
However, we currently hard code the Publisher and InternetURL values to our
existing server like:
repl.Publisher = "MyMachineName"
repl.InternetURL =
"http://MyMachineName.domain.com/SqlRepl/sqlcesa20.dll"

My question or problem is this...what happens in the case of a failover? We
have a backup/redundant/mirrored server at a different geographic
location...obviously it has a different server name. For the devices in the
field, how do people handle this type of situation where the server failover
will occur automatically. Or, if we decide to move to a server farm...where
we have multiple Sql Servers...how can we make our mobile application
agnostic to the Publisher?

Thanks for any help or advice.
- will
Hilary Cotter

2005-09-13, 3:23 am

The best way to do this is to put your publisher on a cluster.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"dw" <dw@discussions.microsoft.com> wrote in message
news:D241EC93-AFFF-4024-B342- 99AF1C4E82D4@microso
ft.com...
> Hello...
>
> Currently we have merge replication set up between SQL 2000 and mobile
> devices running SQL CE 2.0...and some with SQL Mobile.
>
> As part of the logic on the device, we have to set some properties for the
> SqlCeReplication object. Some of these we make dynamic, like the
> publication, login, etc.
> However, we currently hard code the Publisher and InternetURL values to

our
> existing server like:
> repl.Publisher = "MyMachineName"
> repl.InternetURL =
> "http://MyMachineName.domain.com/SqlRepl/sqlcesa20.dll"
>
> My question or problem is this...what happens in the case of a failover?

We
> have a backup/redundant/mirrored server at a different geographic
> location...obviously it has a different server name. For the devices in

the
> field, how do people handle this type of situation where the server

failover
> will occur automatically. Or, if we decide to move to a server

farm... where

> we have multiple Sql Servers...how can we make our mobile application
> agnostic to the Publisher?
>
> Thanks for any help or advice.
> - will



dw

2005-09-13, 1:24 pm

Would that mean the Publisher and Distributor would be on different machines?

"Hilary Cotter" wrote:

> The best way to do this is to put your publisher on a cluster.
>
> --
>

Ed Enstrom

2005-09-13, 8:24 pm

dw wrote:
> Hello...
>
> Currently we have merge replication set up between SQL 2000 and mobile
> devices running SQL CE 2.0...and some with SQL Mobile.
>
> As part of the logic on the device, we have to set some properties for the
> SqlCeReplication object. Some of these we make dynamic, like the
> publication, login, etc.
> However, we currently hard code the Publisher and InternetURL values to our
> existing server like:
> repl.Publisher = "MyMachineName"
> repl.InternetURL =
> "http://MyMachineName.domain.com/SqlRepl/sqlcesa20.dll"
>
> My question or problem is this...what happens in the case of a failover? We
> have a backup/redundant/mirrored server at a different geographic
> location...obviously it has a different server name. For the devices in the
> field, how do people handle this type of situation where the server failover
> will occur automatically. Or, if we decide to move to a server farm...where
> we have multiple Sql Servers...how can we make our mobile application
> agnostic to the Publisher?
>
> Thanks for any help or advice.
> - will


Try using a DNS alias name and have your subscribers connect to that. When you change the server,
also change DNS to point to the new machine. Will be transparent to the subscribers. Make sure
that the server will respond to the alias name.

We use aliases at my company. Recently, the motherboard on our production server died. All the
data files are on an external disk array. We have an identical server as backup. We moved the C:
hard drive to the backup server and moved the cable from the disk array. We changed DNS to point
the alias to the new server. Back up in 10 minutes.

This also works when upgrading to a bigger server.
Hilary Cotter

2005-09-16, 1:23 pm

No, they should be on the same machine.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"dw" <dw@discussions.microsoft.com> wrote in message
news:09D18E34-DC6F-4EAE-82F4- 07645EE1578E@microso
ft.com...
> Would that mean the Publisher and Distributor would be on different

machines?[color=darkred]
>
> "Hilary Cotter" wrote:
>


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com