Wednesday, March 28, 2012
how to show progress percent
So while use osql execute the script there would be cost a lot of time. What I want to do is show a dialog which could show the progress percent and the file name which is now being addad as article. when i use osql I just want whenever I execute a stat
ement the osql or the script could return a number!
hwo can i use Transact-SQL to do this?
Thanks a lot
Out of the box for standard initialization this is not possible. If you want
to monitor the standard process you could poll the relevant history table -
MSmerge_history for merge and MSdistribution_history for transactional and
snapshot and filter these results. If you are implementing your own script
to create the tables at the subscriber you could maintain your own counter
and increment it each time a table is added.
HTH,
Paul Ibison
|||the replication ActiveX controls have this functionality. Unfortunately you have to use the status event which is not accessible from a script.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Paul Ibison" wrote:
> Out of the box for standard initialization this is not possible. If you want
> to monitor the standard process you could poll the relevant history table -
> MSmerge_history for merge and MSdistribution_history for transactional and
> snapshot and filter these results. If you are implementing your own script
> to create the tables at the subscriber you could maintain your own counter
> and increment it each time a table is added.
> HTH,
> Paul Ibison
>
>
|||I could maintain my own counter and increment it but how can i return the counter to the outside when executed each one statement ?
In fact, now I want to build a setup program with InstallShield Profession and during the install, a replication should be done. The database which need to be replicated is very big. So I want to show a dialog which show the progress precent to improve th
e setup UI. It is not complex to show a dialog in InstallShield script. but I can not return the counter in the MSSQL script to the InstallShield script, when using the osql utility( like osql ... -i script file name ).
Could you like to give any suggestion?
Thanks a lot
"Paul Ibison" wrote:
> Out of the box for standard initialization this is not possible. If you want
> to monitor the standard process you could poll the relevant history table -
> MSmerge_history for merge and MSdistribution_history for transactional and
> snapshot and filter these results. If you are implementing your own script
> to create the tables at the subscriber you could maintain your own counter
> and increment it each time a table is added.
> HTH,
> Paul Ibison
>
>
|||Lowiq,
you have a few choices. You can have many scripts and get a count by virtue
of the number of scripts processed. If InstallShield is multi-threaded
(don't know offhand), you can set off the osql script asynchronously. The
script would increment a counter in a table each time it adds a table,
populates a table etc. Your main execution thread would poll this counter
table to see the level of progress. Alternatively you could poll the
relevant history table although this would require a bit of complex
filtering. BTW nosync initializations can be a little restrictive as far as
future modifications are concerned.
HTH,
Paul Ibison
"lowiq" <lowiq@.discussions.microsoft.com> wrote in message
news:331E585D-28A2-473A-8B6D-EA38D2A841BA@.microsoft.com...
> I could maintain my own counter and increment it but how can i return the
counter to the outside when executed each one statement ?
> In fact, now I want to build a setup program with InstallShield Profession
and during the install, a replication should be done. The database which
need to be replicated is very big. So I want to show a dialog which show the
progress precent to improve the setup UI. It is not complex to show a dialog
in InstallShield script. but I can not return the counter in the MSSQL
script to the InstallShield script, when using the osql utility( like osql
... -i script file name ).[vbcol=seagreen]
> Could you like to give any suggestion?
> Thanks a lot
> "Paul Ibison" wrote:
want[vbcol=seagreen]
table -[vbcol=seagreen]
and[vbcol=seagreen]
script[vbcol=seagreen]
counter[vbcol=seagreen]
Monday, March 26, 2012
How to share read only data
Hi,
I'm new to replication. Can anyone help with the following?
I want to publish the specific rows of data that are created on the publisher without accepting changes to those rows from subscribers, but do accept new rows (and changes to those rows) from subscribers.
EG. publisher creates rows 1 and 2 which are published to the subscriber
subscriber creates rows 3 and 4 which are merged back to the publisher
subscriber's updates (or delets) to rows 1 and 2 are not merged back to the publisher
So basically I want the publisher created rows to be published but remain as is whilst allowing subscriber created rows to be merged back to the publisher.
Hope is makes sense.
Thanks in advance,
Seedsy
Look at the properties of the articles (tables). There is an option called Synchronization Direction. That property, along with others, are what you are looking for.
By default, the Synchronization Direction property is set to Bidirectional, meaning, data will be synchronized both directions. I am pretty sure you can set this property to only allow synchronization one direction.
Hope this helps...
|||I couldn't find any properties within the Publication's Articles' "Table Article Properties" but I found the SQLMergeObject's ExchangeType Property which allows upload / download / bidirectional. Shame its not a GUI option within the REPL tools.
Thanks I should be able to work it out from here.
|||Basically you want to publish ins/upd/del changes from the publisher to the subscriber, and only inserts at the subscriber to the publisher, correct? Seems like you want to implement bi-directional transactional replication (or possibly peer to peer replication), you can decide not to replicate upd and del commands at one of the nodes in the article properties.|||Thanks Greg.
I can see that Table Article properties allows checking of the user permissions when merging subscriber changes for Insert, Update and Delete.
So is the approach that ... one should be using the restrictions of user permissions to disallow update and delete by the subscriber?
Seedsy
PS I should mention I'm using SQL2000 (V8.00.2039) SP4 so maybe I don't have all the bells and whistles.
|||i'm not sure it will work for merge replication, but I'm sure bi-directional transactional replication is what you need if you're on SQL 2000.Friday, March 23, 2012
How to setup replicaton over WAN (using DNS hostname and IP addres
for name pipes nor UNC server name? i.e. using only DNS hostname and IP
address for the source and target SQL 2005 servers?
If so, can you share how you did it, and what are the firewall ports to
open? I need to be able to at least do a one-to-many publication (one
direction) replication.
Please advise.
Thank you.
Hello,
You could consider using "web sync" for this issue. It just needs https 443
port and IIS to be published to the Internet.
http://msdn2.microsoft.com/en-us/library(d=robot)/ms147927.aspx
Also, you could setup VPN connection between publisher/subscriber or
between LANs on different sites. You could then setup replicaiton just as
that they are in the same LAN.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.
--
>Thread-Topic: How to setup replicaton over WAN (using DNS hostname and IP
addres
>thread-index: AcYypJSK0As+BG/bQyuvGhjq324yHg==
>X-WBNR-Posting-Host: 216.254.123.226
>From: "=?Utf-8?B?YnNhbmRlcnM=?=" <missisummer@.community.nospam>
>Subject: How to setup replicaton over WAN (using DNS hostname and IP addres
>Date: Wed, 15 Feb 2006 18:56:27 -0800
>Lines: 11
>Message-ID: <858F748C-1703-41B8-ABD8-034615434D67@.microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
>charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.sqlserver.replication
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.replication:69369
>X-Tomcat-NG: microsoft.public.sqlserver.replication
>Has another successfully setup SQL 2005 replication over WAN without the
need
>for name pipes nor UNC server name? i.e. using only DNS hostname and IP
>address for the source and target SQL 2005 servers?
>If so, can you share how you did it, and what are the firewall ports to
>open? I need to be able to at least do a one-to-many publication (one
>direction) replication.
>Please advise.
>Thank you.
>
How to setup Replication with Access
I want to setup replication on Access Database.. I want data will be updated
in SQL Server from Access database..
1) Which replication type will be best suited (merge or transactional)
2) How I will setup subscription on Access database. Whenever I try to
create a push subscription I only found option to create subsription on SQL
Server database. Although I have checked "Hetrogeneous datasources such as
Access" option when creating publication.
any suggesstion or link to article will be highly appreiciated..
Thanks
Ansari
Hi all
I succeeded in creating push subscription to an access datatbase. But
whenever I snapshot agest want to apply initial snap shot the process fails
and give me the following errors
"The process could not initialize 'MsJet'. Check to see if the component is
registered correctly"
any sugestion
Ansari
"Ansari" <mudasar_ansari@.yahoo.com> wrote in message
news:O6I4OqSpEHA.1160@.tk2msftngp13.phx.gbl...
> hi all,
> I want to setup replication on Access Database.. I want data will be
updated
> in SQL Server from Access database..
> 1) Which replication type will be best suited (merge or transactional)
> 2) How I will setup subscription on Access database. Whenever I try to
> create a push subscription I only found option to create subsription on
SQL
> Server database. Although I have checked "Hetrogeneous datasources such as
> Access" option when creating publication.
> any suggesstion or link to article will be highly appreiciated..
> Thanks
> Ansari
>
>
How to setup replication between access to SQL Server , MSDE inste
Yes it is possible to have Access subscribers:
see http://msdn.microsoft.com/library/en...lctem_0815.asp
And the Access DBs should be subscribers and the SQL server would be the
Publisher.
And YES switch to the MSDE instead of Access, for a lot of reasons.
(Compatibility, flexibility, openness in regard to debugging and error
logging, stability)
HTH
JorgenD.
"Karen Middleton" wrote:
> Hello All
> We have a computer based application running on trucks and they
> capture the transaction into a Access database we need to collect the
> data from multiple trucks into a SQL Server database centrally.
> Can somebody please explain whether Access can replicate to SQL Server
> with Access as publisher and SQL Server as the subscriber. Also, I am
> wondering is it worthwhile to replace Access by MSDE since MSDE is
> free I would appreciate your feedback on this count.
> Also, any books, web sites, white papers and how to setup a
> replication from Access to SQL Server. Also, can somebody please
> explain how the replication works from Access to SQL Server and is it
> lot of coding to get this working and what kind of replication is it
> full table or delta replication.
> Also, some of our trucks will be in far off places is there a nice way
> in which Access can be made to replicate from these remote sites to
> the central site what kind of comms do we need.
>
> Many thanks in advance for your inputs
> Thanks
> Karen
>
Karen,
I agree with Jorgen that MSDE would be preferable long-term. However, your
original question was about having Access as a publisher and SQL Server as a
subscriber, which is not available out of the box using Jet. If you have sql
server as a merge publisher and access as a subscriber, in many senses
datawise it will be functionally equivalent, but care will need taking with
administrtion and conflict resolution where the role of the publisher is
indeed distinct to the subscriber.
HTH,
Paul Ibison (SQL Server MVP)
[vbcol=seagreen]
sql
How to setup replication between access to SQL Server , MSDE inste
Yes it is possible to have Access subscribers:
see http://msdn.microsoft.com/library/en...lctem_0815.asp
And the Access DBs should be subscribers and the SQL server would be the
Publisher.
And YES switch to the MSDE instead of Access, for a lot of reasons.
(Compatibility, flexibility, openness in regard to debugging and error
logging, stability)
HTH
JorgenD.
"Karen Middleton" wrote:
> Hello All
> We have a computer based application running on trucks and they
> capture the transaction into a Access database we need to collect the
> data from multiple trucks into a SQL Server database centrally.
> Can somebody please explain whether Access can replicate to SQL Server
> with Access as publisher and SQL Server as the subscriber. Also, I am
> wondering is it worthwhile to replace Access by MSDE since MSDE is
> free I would appreciate your feedback on this count.
> Also, any books, web sites, white papers and how to setup a
> replication from Access to SQL Server. Also, can somebody please
> explain how the replication works from Access to SQL Server and is it
> lot of coding to get this working and what kind of replication is it
> full table or delta replication.
> Also, some of our trucks will be in far off places is there a nice way
> in which Access can be made to replicate from these remote sites to
> the central site what kind of comms do we need.
>
> Many thanks in advance for your inputs
> Thanks
> Karen
>
Karen,
I agree with Jorgen that MSDE would be preferable long-term. However, your
original question was about having Access as a publisher and SQL Server as a
subscriber, which is not available out of the box using Jet. If you have sql
server as a merge publisher and access as a subscriber, in many senses
datawise it will be functionally equivalent, but care will need taking with
administrtion and conflict resolution where the role of the publisher is
indeed distinct to the subscriber.
HTH,
Paul Ibison (SQL Server MVP)
[vbcol=seagreen]
how to setup replicating data to oracle database
How to Setup Merge replication with sql express
I have a Windows Mobile aplication that uses merge replication to synchronize between sql compact and full sql Enterprise edition and It works great. Instantiating the SqlCeReplication object setting it's properties and calling Synchronize on it is pretty simple assuming everything is setup properly at the publisher.
For the life of me I can't figure out how to do this on the desktop (Programatically setup a subscription and create a database using objects in the System.Replication Namespace and hopefully call Synchronize on it).
Someone please point me in the right direction.
Thanks,
Patrick
See topic "Programming with Replication Management Objects", http://msdn2.microsoft.com/en-us/library/ms146869(SQL.90).aspx.
|||Look at the MergeSynchronizationAgent class.
Here is some sample code in C#:
Code Snippet
_mergeAgent = newMergeSynchronizationAgent();
_mergeAgent.Publication = _publication;
_mergeAgent.Publisher = _publisher;
_mergeAgent.PublisherDatabase = _publisherDB;
_mergeAgent.PublisherSecurityMode = SecurityMode.Integrated;
_mergeAgent.Distributor = _distributor;
_mergeAgent.DistributorLogin = _distributorLogin;
_mergeAgent.DistributorPassword = _distributorPassword;
_mergeAgent.DistributorSecurityMode = SecurityMode.Standard;
_mergeAgent.Subscriber = _subscriber;
_mergeAgent.SubscriberDatabase = _subscriberDB;
_mergeAgent.SubscriberLogin = _subscriberLogin;
_mergeAgent.SubscriberPassword = _subscriberPassword;
_mergeAgent.SubscriberSecurityMode = SecurityMode.Standard;
_mergeAgent.SubscriptionType = SubscriptionOption.Pull;
_mergeAgent.LoginTimeout = _LoginTimeOut;
_mergeAgent.QueryTimeout = _QueryTimeOut;
_mergeAgent.Synchronize();
Hope this helps!
Wednesday, March 21, 2012
How to setup front-end IIS and back-end SQL server?
Hi,
I need some help in setting up a front end IIS box and back end SQL 2005 box. I will be using merge replication.
Front end server will be a 32 bit.
How exactly do you do this? Anyone have any links to articles that walks through the setup?
Thanks,
p
Hi Pintu, see this link:
http://www.databasejournal.com/features/mssql/article.php/1438231
how to setup db replication with objects owned by user other than dbo?
between servers. The many of the tables, stored procedures and views are
owned by a user (e.g. USER1). The version running is SQL 2000. Lets take for
instance snapshot replication from Server1 to Server2.
Now I know that many people are having problems with replicating a database
and ending up realising that the tables, stored procs and views are now
owned by dbo. I want the replicated database objects owned by USER1. What do
I have to do? Do I:
1) create USER1 on the Server2,
2) and then start snapshot replication from Server1 assigning "Publication
properties > Articles > Article Defaults > Destination Table Owner" = USER1
?
3) then move across USER1's permissions to the replicated objects (not sure
how to proceed with this, I think i have to use ).
or do I:
1) create USER1 on the Server2,
2) use DTS to create empty table structures on Server2
3) and then assign USER1 the permissions
I am somewhat confused because USER1's permissions are dependent on the
tables being defined, and the tables are dependent on USER1 having ownership
on them. I dont know what to set up first.
Simply stated, how do I simply "set up a replication from scratch for a
database with objects owned by a user other than dbo"
Could anyone direct me?
Thanks!
PeterGenerate SQL Script of login,
Execute it on new server (create login + permissions +
add_role logins... )
then DTS the objects of the server (what you want) to the
other server...
>--Original Message--
>Hi, I was hoping someone could tell me how I am to
replicate a database
>between servers. The many of the tables, stored
procedures and views are
>owned by a user (e.g. USER1). The version running is SQL
2000. Lets take for
>instance snapshot replication from Server1 to Server2.
>Now I know that many people are having problems with
replicating a database
>and ending up realising that the tables, stored procs and
views are now
>owned by dbo. I want the replicated database objects
owned by USER1. What do
>I have to do? Do I:
>1) create USER1 on the Server2,
>2) and then start snapshot replication from Server1
assigning "Publication
>properties > Articles > Article Defaults > Destination
Table Owner" = USER1
>?
>3) then move across USER1's permissions to the replicated
objects (not sure
>how to proceed with this, I think i have to use ).
>or do I:
>1) create USER1 on the Server2,
>2) use DTS to create empty table structures on Server2
>3) and then assign USER1 the permissions
>I am somewhat confused because USER1's permissions are
dependent on the
>tables being defined, and the tables are dependent on
USER1 having ownership
>on them. I dont know what to set up first.
>Simply stated, how do I simply "set up a replication from
scratch for a
>database with objects owned by a user other than dbo"
>Could anyone direct me?
>Thanks!
>Peter
>
>
>.
>
How to set up replication from SQL Server 2005 to MySQL through ODBC
Can anyone please provide me with a step-by-step explanation on how to
replicate data (snapshot replication) from a table in a SQL Server
2005 database to a table in a MySQL database through an ODBC
connection?
I have already created a publication, but have not succeeded in
successfully adding a subscription. I know that I have to use the
stored procedures "sp_addsubscription" and
"sp_addpushsubscription_agent", but cannot figure out how to set up
the parameters to get it to work. Any help on this issue would be
greatly appreciated.
Thanks
This is not supported in SQL 2005. It was in SQL 2000 but there was a bug
last time I checked.
<ronald.debruin@.ecorys.com> wrote in message
news:1177595848.403994.88300@.n35g2000prd.googlegro ups.com...
> Hi,
> Can anyone please provide me with a step-by-step explanation on how to
> replicate data (snapshot replication) from a table in a SQL Server
> 2005 database to a table in a MySQL database through an ODBC
> connection?
> I have already created a publication, but have not succeeded in
> successfully adding a subscription. I know that I have to use the
> stored procedures "sp_addsubscription" and
> "sp_addpushsubscription_agent", but cannot figure out how to set up
> the parameters to get it to work. Any help on this issue would be
> greatly appreciated.
> Thanks
>
How To set up Replication for this really daring (poor) Architecture?
I'm totally new to Replication. I'm reading the whole mornign alreaddy docs
and pages about it, but I still don't know how to solve this situation:
My (new) company has different Production-Sites, and one Main Office. All of
them have a copy of an Sql Server 2000 Database. One or two times a week, a
Raplication should happen:
- for some tables: From the Production-Sites to the Main Office
- for other tables: From the Main Office to the Production-Sites
It goed about 400-500 records a week for every site, mainly Inserts, but
from time to time also Updates an Deletes.
And now comes the tricky part: They don't have a connection between them!
They are in a country in which Internet isn't yet invented, hehe. The
communication happens with some type of Radio, with very poor quality, very
slow etc.
So what I need is: one or two times a week (they have to do the whole
Replication stuff manually) a file with the changes, that can be send to the
other site. After that a confirmation should be send back (which can take
easily some days).
I'm not asking for a whole solution, but things that can help me, that can
put me on the way. Like some step for step wizard that will help me
configure everything for this situation. Only two things are imported: the
replication should work 100% correct, and the size of the files that has to
be send, must be as low as possible!
I guess I should be using Queued transactional Replication? But for the
rest...
Any help would be really appreciated! Thanks a lot in advance.
Pieter
disable your distribution clean up agent. Run a job that runs once a
day which will pipe sp_browsereplcmds to a new table - like this
declare @.datetable varchar(25)
set @.datetable='['+convert(varchar(20),getdate())+']'
exec sp_browsereplcmds @.results_table=@.datetable
then run the distribution clean up job
You will get a table which contains all the commands you need to sync
the two databases. Run this on the branch offices. Do the same thing in
the brancj offices and run this in the central office.
With luck you will have no conflicts, otherwise you will have to figure
out how best to handle the conflicts.
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
DraguVaso wrote:
> Hi,
> I'm totally new to Replication. I'm reading the whole mornign
alreaddy docs
> and pages about it, but I still don't know how to solve this
situation:
> My (new) company has different Production-Sites, and one Main Office.
All of
> them have a copy of an Sql Server 2000 Database. One or two times a
week, a
> Raplication should happen:
> - for some tables: From the Production-Sites to the Main Office
> - for other tables: From the Main Office to the Production-Sites
> It goed about 400-500 records a week for every site, mainly Inserts,
but
> from time to time also Updates an Deletes.
> And now comes the tricky part: They don't have a connection between
them!
> They are in a country in which Internet isn't yet invented, hehe. The
> communication happens with some type of Radio, with very poor
quality, very
> slow etc.
> So what I need is: one or two times a week (they have to do the whole
> Replication stuff manually) a file with the changes, that can be send
to the
> other site. After that a confirmation should be send back (which can
take
> easily some days).
> I'm not asking for a whole solution, but things that can help me,
that can
> put me on the way. Like some step for step wizard that will help me
> configure everything for this situation. Only two things are
imported: the
> replication should work 100% correct, and the size of the files that
has to
> be send, must be as low as possible!
> I guess I should be using Queued transactional Replication? But for
the
> rest...
> Any help would be really appreciated! Thanks a lot in advance.
> Pieter
|||Err I'm sorry but i don't understand a Word of it...
How should I configure the SQL Server that has the changed tables? As a
Distributor, or a Subscriber, or a Publisher, or both of them?
And what has to be in the configuration of it? And Should I use the
Transactional Replication?
I'm new to Replication, so thank you very much for your help, but I don't
knwo where to put it and to do what exactly.
Until now I hasn't been able to do any replciation yet :-(
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:1114166996.038504.145260@.l41g2000cwc.googlegr oups.com...
> disable your distribution clean up agent. Run a job that runs once a
> day which will pipe sp_browsereplcmds to a new table - like this
> declare @.datetable varchar(25)
> set @.datetable='['+convert(varchar(20),getdate())+']'
> exec sp_browsereplcmds @.results_table=@.datetable
> then run the distribution clean up job
> You will get a table which contains all the commands you need to sync
> the two databases. Run this on the branch offices. Do the same thing in
> the brancj offices and run this in the central office.
> With luck you will have no conflicts, otherwise you will have to figure
> out how best to handle the conflicts.
> --
> 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
>
> DraguVaso wrote:
> alreaddy docs
> situation:
> All of
> week, a
> but
> them!
> quality, very
> to the
> take
> that can
> imported: the
> has to
> the
>
Friday, March 9, 2012
How to set replication
Would you please help me to set SQL 2000 replication ?
I need a link or article that show me how to set replication between SQL
2000 servers.
thank you
best regards.
Akkado,
have a look at
(a) this site for a graphical walkthrough:
http://www.mssqlcity.com/Articles/Replic/Replic.htm
(b) books on line (BOL) for an indepth description of replication.
(c) this recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
HTH,
Paul Ibison
Wednesday, March 7, 2012
How to set Merge Repl properties for multiple servers?
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
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@.microsoft.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
|||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.
> --
>
|||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.
|||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@.microsoft.com...
> Would that mean the Publisher and Distributor would be on different
machines?[vbcol=seagreen]
> "Hilary Cotter" wrote:
How to set loopback detection in SQL7
loopback detection on? I have been looking for documentation and found
sp_replsetoriginator, but it doesn't talk about how it can be setup.
Thanks.
-A
You're probably not going to be able to do this. You can hardcode it though.
Add a column to each table with a default of @.@.servername. In the procs do
an existence check to see if the value of the servername column matches the
value of @.@.servername. If so don't do your DML as its looping back.
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
"Adam" <Adam@.discussions.microsoft.com> wrote in message
news:B0151D50-DD9D-4121-973D-49B6D4A5711C@.microsoft.com...
> I am doing bi-directional replication between SQL2k and SQL7. How can I
turn
> loopback detection on? I have been looking for documentation and found
> sp_replsetoriginator, but it doesn't talk about how it can be setup.
> Thanks.
> -A
>
|||Thank you so much.
"Hilary Cotter" wrote:
> You're probably not going to be able to do this. You can hardcode it though.
> Add a column to each table with a default of @.@.servername. In the procs do
> an existence check to see if the value of the servername column matches the
> value of @.@.servername. If so don't do your DML as its looping back.
> --
> 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
> "Adam" <Adam@.discussions.microsoft.com> wrote in message
> news:B0151D50-DD9D-4121-973D-49B6D4A5711C@.microsoft.com...
> turn
>
>