Showing posts with label replication. Show all posts
Showing posts with label replication. Show all posts

Thursday, March 29, 2012

changing the sync_type option of a subscription

If I create a subscription with a sync_type set to 'replication support only' is it possible to change that option to 'automatic' down the road without destroying and recreating the
subscription?

-mike

You can look into the following articles on changing the subscription property.

How to: View and Modify Push Subscription Properties (SQL Server Management Studio)

http://msdn2.microsoft.com/en-us/library/ms151741.aspx

How to: View and Modify Push Subscription Properties (Replication Transact-SQL Programming)

http://msdn2.microsoft.com/en-us/library/ms147323.aspx

However, I don't see @.sync_type as one of the property you can change.

Do you mind I ask why you want to change from "automatic" to "replication support only" later? What is your scenario?

Gary

|||Automatic appears (and I need to do more reading on this) to give you a bit more flexability when adding items to a publication. For example, I have a publication and subscription (w/ sync_type = automatic) up and running and now I want to add another object to that publication. Once I've added the object all I need to do is regenerate the snapshot and that object is replicated to the subscriber.

So, that being said, I have a very large database that takes around four hours to deliver the initial snapshot. Due to the size and time of delivering that snapshot, it makes sense to create a publication with a subscription set to 'replication support only'. But down the road I may want to add objects to that publication and don't want to have to destroy and recreate the subscription and have to deliver the snapshot.|||

I guess no ..i have the same scenario still lurking and i am sure we have to drop and re-create the subscription to chnage the setting.

Script out replication run the script for subscription you want to change @.sync_type or u may use wizard to create the article and subscription for the same.

changing the sync_type option of a subscription

If I create a subscription with a sync_type set to 'replication support only' is it possible to change that option to 'automatic' down the road without destroying and recreating the
subscription?

-mike

You can look into the following articles on changing the subscription property.

How to: View and Modify Push Subscription Properties (SQL Server Management Studio)

http://msdn2.microsoft.com/en-us/library/ms151741.aspx

How to: View and Modify Push Subscription Properties (Replication Transact-SQL Programming)

http://msdn2.microsoft.com/en-us/library/ms147323.aspx

However, I don't see @.sync_type as one of the property you can change.

Do you mind I ask why you want to change from "automatic" to "replication support only" later? What is your scenario?

Gary

|||Automatic appears (and I need to do more reading on this) to give you a bit more flexability when adding items to a publication. For example, I have a publication and subscription (w/ sync_type = automatic) up and running and now I want to add another object to that publication. Once I've added the object all I need to do is regenerate the snapshot and that object is replicated to the subscriber.

So, that being said, I have a very large database that takes around four hours to deliver the initial snapshot. Due to the size and time of delivering that snapshot, it makes sense to create a publication with a subscription set to 'replication support only'. But down the road I may want to add objects to that publication and don't want to have to destroy and recreate the subscription and have to deliver the snapshot.|||

I guess no ..i have the same scenario still lurking and i am sure we have to drop and re-create the subscription to chnage the setting.

Script out replication run the script for subscription you want to change @.sync_type or u may use wizard to create the article and subscription for the same.

Tuesday, March 27, 2012

Changing the schema ownership on subscriber

Hi,

I have a replication in which publisher, distributer and subscriber all runing on sql server 2005. all the tables that needs to be replicated are under 'dbo' schema on publisher.

Subscriber is a datawarehouse so i dont want to put tables coming from a system to go under dbo schema as there might be other application replicating same name tables to warehouse. i have created a schema for my application on warehouse but dont know how to tell replication to create tables under application schema created on subscriber. I am using snapshot replication that can be reinitialized if required.

any help will be appriciated.

Cheers,

Furrukh baig

Just found it myself. go to publication properties. click articles and then right click on any article and select "set properties for all tables" ... this will open the property window ... look for "destination object owner" and specify the value of schema name on target.

thanks,

Furrukh Baig

CHANGING THE REPLICATION SERVER IP

Are you using IP address as the server registration, or
the netbiosname. If it is the latter then there is no
issue. If the former, then I would recommend using
aliases in the client network utility to avoid recreating
the publications.
HTH,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Hi Paul,
Thanks for ur reply.
Now In the replication the publisher is in alise name & subscriber is in IP.
I can change the publisher IP but can't the subscriber IP.
I tried to set a test replication with both publisher & subscriber are in
alise name.
But when I set the push subscription, the replication stops & the error
message
comes "The subscription to publication 'databasename' is invalid".
What is the reason for this?
Is it possible to set both pub & sub servers in alise name ?
Thanks,
Soura
"Paul Ibison" wrote:

> Are you using IP address as the server registration, or
> the netbiosname. If it is the latter then there is no
> issue. If the former, then I would recommend using
> aliases in the client network utility to avoid recreating
> the publications.
> HTH,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
|||Yes - on the subscriber for a pull subscription you can
set the publisher in the client network utility. On the
publisher in enterprise manager, you can register the
publisher using an alias. If it is push, you's also
create an alias for the subscriber. Alternatively,
assuming you have trusted domains, you could just not use
the IP addresses at all - the netbiosnames would be more
suitable.
HTH,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
sql

Thursday, March 22, 2012

Changing the data schema in Transactional replication

I am using concurrent snapshot - transactional replication. If I need to add
the column to the replicated table, do I need to drop and re-create
subscription everytime? The database is about 20Gb, it takes up to 4 hours to
re-create two subscriptions. Is there any easier way of changing the data
schema with this configuration?
Please look at sp_repladdcolumn in BOL. If you are using SQL Server 2005,
ALTER TABLE will do it.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
|||Nope, it will not help. The column need to be added into the table through
differnet software and then populated. I was doing drop article -
subscribtion then addarticle- subscription. But I had tables locked during
the snapshot creation. Then I unchecked the tables lock and received
concurrent snapshot. Drop article-subscription wokrs well, then add article
works too, but then when I add this article to the subscription I receive an
error message: needed to specify all articles? what about if I have about
100 tables-articles?
"Paul Ibison" wrote:

> Please look at sp_repladdcolumn in BOL. If you are using SQL Server 2005,
> ALTER TABLE will do it.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com .
>
>
|||Please can you post up the entire error message. Also, in order for me to
repro, can you tell me if there are any extra parts to the setup eg
anonymous subscribers that I need to know about. In fact, can you script out
the publication and I'll set up something similar tomorrow.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .

Changing table relationships

We have a merge replication db that we have to drop a table index, add a
different index and change the relationships in one table. Will the laptops
pick up all of this or do I have to re-create the snapshot and also the
subscription? Thanks.
p.s. I assume I can't do this in EM?
David
for both SQL 2000 and SQL 2005 when you can't replicated these sorts of
schema changes.
I think you will have to drop the subscriptions and publications, make the
changes and try again.
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
"David C" <dlchase@.lifetimeinc.com> wrote in message
news:uv$gS77xHHA.4300@.TK2MSFTNGP04.phx.gbl...
> We have a merge replication db that we have to drop a table index, add a
> different index and change the relationships in one table. Will the
> laptops pick up all of this or do I have to re-create the snapshot and
> also the subscription? Thanks.
> p.s. I assume I can't do this in EM?
> David
>
sql

Changing table properties

I have 7 tables that I want to remove the checkbox for "Enforce relationship
for replication". These tables are all articles in a publication and I want
them to get down to the merge synchronization laptop subscribers. On a test
system, I unchecked them in EM and the changes took without any errors
(actually I expected to be told I cannot do that on published articles). I
assume that I can just re-create the snapshot and have the laptops
"reinitialize" at their next synch. Am I correct or missing anything.
Thanks.
David
David,
this is fine, although you might be able to just apply a script on the
subscriber to drop the FKs directly (or through sp_addscriptexec) without
doing the reinitialization.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
|||I tried this in a test environment but when I looked at the database on the
laptop it still had the box checked. Did I miss something?
David
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:etWoZ9JQHHA.1380@.TK2MSFTNGP05.phx.gbl...
> David,
> this is fine, although you might be able to just apply a script on the
> subscriber to drop the FKs directly (or through sp_addscriptexec) without
> doing the reinitialization.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com .
>
|||David - can you post up the script you were using and I'll take a look.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
|||Paul,
I was trying to do it in Enterprise Manager instead of script. I then went
into the Snapshot Agent and restarted the snapshot agent, which I thought
would pick up the new settings. I then re-initialized the subscription at
the laptop but it didn't pick up the removal of "Enforce relationship for
replication".
Do I need to completely re-create the publication? If I can do it in a
script then what script do I use to run on the laptops and where can I find
the syntax for changing this relationship property? Thank you.
David
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:OZyzv$SQHHA.1200@.TK2MSFTNGP02.phx.gbl...
> David - can you post up the script you were using and I'll take a look.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com .
>
>
|||Also, do I need to run sp_addscriptexec at both the publisher and
subscriber? I read the BOL and they said you have to be sysadmin to run it
but the laptops are not. Thanks.
David
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:OZyzv$SQHHA.1200@.TK2MSFTNGP02.phx.gbl...
> David - can you post up the script you were using and I'll take a look.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com .
>
>
|||Hi David - have answered your other thread below.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
|||David,
the script is in the form:
ALTER TABLE dbo.yourFKtable
DROP CONSTRAINT yourFKtable1
GO
ALTER TABLE dbo.yourFKtable WITH NOCHECK ADD CONSTRAINT
yourFKtable1 FOREIGN KEY
(
PKColumn
) REFERENCES dbo.YourPKTable
(
pkcolumn
) NOT FOR REPLICATION
GO
You'll need to run this at the publisher to change the publisher tables then
add it to the publication using sp_addscriptexec.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
|||Thanks Paul. Will I have to run sp_addscriptexec at the subscribers also or
will that happen when they synch?
David
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:ufa1ml4QHHA.4632@.TK2MSFTNGP04.phx.gbl...
> David,
> the script is in the form:
> ALTER TABLE dbo.yourFKtable
> DROP CONSTRAINT yourFKtable1
> GO
> ALTER TABLE dbo.yourFKtable WITH NOCHECK ADD CONSTRAINT
> yourFKtable1 FOREIGN KEY
> (
> PKColumn
> ) REFERENCES dbo.YourPKTable
> (
> pkcolumn
> ) NOT FOR REPLICATION
> GO
> You'll need to run this at the publisher to change the publisher tables
> then add it to the publication using sp_addscriptexec.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com .
>
|||David - the merge agent will take care of applying it to the subscribers.
Cheers,
Paul Ibison

Tuesday, March 20, 2012

changing SQL server service account

Guys,
I have got WINDOWS 2000 Advanced Server and MS SQL SERVER 7.0 running on my live server. Now when we are planning for replication, we have found that SQL server will require to run under a domain account. At the moment there are so many ASP pages running on our server accesses different databases created using SQL server 7.0. Most of them are DSN connections to the database. Now if i create a domain account and restart the server and MS SQL services with the domain account, how is it going to effect the current web pages running on it?
Any help will be greatly appreciated.
ThanksA connection to a database has no bearing on what account starts the sql server service. However the account used does affect how the server interacts with other sql servers, or other machine resources, you found that out when you tried to implement replication using LocalSystem account. You can search msdn for "sql server service account" to get a better understanding of the purpose of accounts for sql server.|||Thanks very much Greg,
your reply helped me to have better understanding.
I would find out more from MSDN as you have suggested.
Cheers.

changing sql server name

Hi
The name of my sql server has an underscore in it and I need to get rid of
it in order to set up replication. BOL is a bit unclear as do I have to
change the name of the pc first of all (which also has underscore in name)
and then run sp_dropserver and sp_addserver. Really, my question is it
possible to rename sql server without first changing the name of the pc? So
can I just use the 2sp's without changing the name of the pc?
Thanks
Jonjo
Hi
You need to rename the PC. sp_dropserver and sp_addserver are there to fix
up the row in Master where the SQL Server queries to find out about itself.
It does not change the network name.
Regards
Mike
"jonjo" wrote:

> Hi
> The name of my sql server has an underscore in it and I need to get rid of
> it in order to set up replication. BOL is a bit unclear as do I have to
> change the name of the pc first of all (which also has underscore in name)
> and then run sp_dropserver and sp_addserver. Really, my question is it
> possible to rename sql server without first changing the name of the pc? So
> can I just use the 2sp's without changing the name of the pc?
> Thanks
> Jonjo

Monday, March 19, 2012

changing sql server name

Hi
The name of my sql server has an underscore in it and I need to get rid of
it in order to set up replication. BOL is a bit unclear as do I have to
change the name of the pc first of all (which also has underscore in name)
and then run sp_dropserver and sp_addserver. Really, my question is it
possible to rename sql server without first changing the name of the pc? So
can I just use the 2sp's without changing the name of the pc?
Thanks
JonjoHi
You need to rename the PC. sp_dropserver and sp_addserver are there to fix
up the row in Master where the SQL Server queries to find out about itself.
It does not change the network name.
Regards
Mike
"jonjo" wrote:

> Hi
> The name of my sql server has an underscore in it and I need to get rid of
> it in order to set up replication. BOL is a bit unclear as do I have to
> change the name of the pc first of all (which also has underscore in name)
> and then run sp_dropserver and sp_addserver. Really, my question is it
> possible to rename sql server without first changing the name of the pc? S
o
> can I just use the 2sp's without changing the name of the pc?
> Thanks
> Jonjo

changing sql server name

Hi
The name of my sql server has an underscore in it and I need to get rid of
it in order to set up replication. BOL is a bit unclear as do I have to
change the name of the pc first of all (which also has underscore in name)
and then run sp_dropserver and sp_addserver. Really, my question is it
possible to rename sql server without first changing the name of the pc? So
can I just use the 2sp's without changing the name of the pc?
Thanks
JonjoHi
You need to rename the PC. sp_dropserver and sp_addserver are there to fix
up the row in Master where the SQL Server queries to find out about itself.
It does not change the network name.
Regards
Mike
"jonjo" wrote:
> Hi
> The name of my sql server has an underscore in it and I need to get rid of
> it in order to set up replication. BOL is a bit unclear as do I have to
> change the name of the pc first of all (which also has underscore in name)
> and then run sp_dropserver and sp_addserver. Really, my question is it
> possible to rename sql server without first changing the name of the pc? So
> can I just use the 2sp's without changing the name of the pc?
> Thanks
> Jonjo

Changing sql dbo user password (will this effect current replication)

We have a subscriber that want's to change the dbo password for the
replication user. Will this effect current publications to that
subscriber?
tia
-comb
Comb,
dbo is a database user rather than a login, so whose password is being
changed? Also, are you using SQL or trusted authentication for the
subscription?
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Yes, this account that you are using will have to be updated at the
publisher.
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
"combfilter" <asdf@.adsf.com> wrote in message
news:MPG.1d53fb2b4158876c9896af@.news.newsreader.co m...
> We have a subscriber that want's to change the dbo password for the
> replication user. Will this effect current publications to that
> subscriber?
> tia
> -comb

Thursday, March 8, 2012

changing replication type for hourly to continuously

Hi All ,
Previously i have set up my replication to be on sync per hour but i want
to change it to be continuously
is there a way to do it w/o removing the existing publication & subscriber
and thus save the task of re-creating the snapshot ?
appreciate ur advice
tks & rdgs
--
Message posted via http://www.sqlmonster.comHi All ,
Furthermore , is there any drawbacks in changing it to continuously mode ?
kindly advise
tks & rdgs
maxzsim wrote:
>Hi All ,
> Previously i have set up my replication to be on sync per hour but i want
>to change it to be continuously
> is there a way to do it w/o removing the existing publication & subscriber
>and thus save the task of re-creating the snapshot ?
>appreciate ur advice
>tks & rdgs
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200601/1|||Open the job in SQL Server Agent. Change the schedule to "start when SQL
Server starts" or whatever it says. Remove the schedule that executed it
once per hour.
--
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com
"maxzsim via SQLMonster.com" <u14644@.uwe> wrote in message
news:59ef504952a00@.uwe...
> Hi All ,
> Previously i have set up my replication to be on sync per hour but i want
> to change it to be continuously
> is there a way to do it w/o removing the existing publication & subscriber
> and thus save the task of re-creating the snapshot ?
> appreciate ur advice
> tks & rdgs
> --
> Message posted via http://www.sqlmonster.com|||tks Michael , but would you know of any drawbakcs using the continuously mode
? especially when the network is not that fast ? i.e while the previous
changes are still being replicated , there are new changes so will it cause
the system to be cranky or anything like that ?
tks & rdgs
Michael Hotek wrote:
>Open the job in SQL Server Agent. Change the schedule to "start when SQL
>Server starts" or whatever it says. Remove the schedule that executed it
>once per hour.
>> Hi All ,
>[quoted text clipped - 7 lines]
>> tks & rdgs
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200601/1|||Changing the agent to only start when SQL Server Agent starts will have it
process only a single batch and then the distribution agent will shut down.
It will not restart until you restart SQL Server agent. Try it. Stop your
SQL Server agent, insert a bunch of rows into a replicated table, bounce SQL
Server, observe your distribution agent starting up, processing the batch
and then shutting down.
You also need to edit your agent to and add the -Continuous switch. Right
click on your agent, select agent properties, click on the steps tab, and
double click on run agent. Click in the commands text box and hit the end
key, then press the space bar and type in -Continuous. Restart your
distribution agent. If you distribution agent does fail, it will restart
again in 1 hour if you leave the scheduling option on.
--
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
"maxzsim via SQLMonster.com" <u14644@.uwe> wrote in message
news:59f0f9aab1351@.uwe...
> tks Michael , but would you know of any drawbakcs using the continuously
> mode
> ? especially when the network is not that fast ? i.e while the previous
> changes are still being replicated , there are new changes so will it
> cause
> the system to be cranky or anything like that ?
> tks & rdgs
> Michael Hotek wrote:
>>Open the job in SQL Server Agent. Change the schedule to "start when SQL
>>Server starts" or whatever it says. Remove the schedule that executed it
>>once per hour.
>> Hi All ,
>>[quoted text clipped - 7 lines]
>> tks & rdgs
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200601/1|||No. It will simply send as much as possible during every synch cycle.
--
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com
"maxzsim via SQLMonster.com" <u14644@.uwe> wrote in message
news:59f0f9aab1351@.uwe...
> tks Michael , but would you know of any drawbakcs using the continuously
> mode
> ? especially when the network is not that fast ? i.e while the previous
> changes are still being replicated , there are new changes so will it
> cause
> the system to be cranky or anything like that ?
> tks & rdgs
> Michael Hotek wrote:
>>Open the job in SQL Server Agent. Change the schedule to "start when SQL
>>Server starts" or whatever it says. Remove the schedule that executed it
>>once per hour.
>> Hi All ,
>>[quoted text clipped - 7 lines]
>> tks & rdgs
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200601/1

changing replication type for hourly to continuously

Hi All ,
Previously i have set up my replication to be on sync per hour but i want
to change it to be continuously
is there a way to do it w/o removing the existing publication & subscriber
and thus save the task of re-creating the snapshot ?
appreciate ur advice
tks & rdgs
Message posted via http://www.droptable.com
Hi All ,
Furthermore , is there any drawbacks in changing it to continuously mode ?
kindly advise
tks & rdgs
maxzsim wrote:
>Hi All ,
> Previously i have set up my replication to be on sync per hour but i want
>to change it to be continuously
> is there a way to do it w/o removing the existing publication & subscriber
>and thus save the task of re-creating the snapshot ?
>appreciate ur advice
>tks & rdgs
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...erver/200601/1
|||Open the job in SQL Server Agent. Change the schedule to "start when SQL
Server starts" or whatever it says. Remove the schedule that executed it
once per hour.
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com
"maxzsim via droptable.com" <u14644@.uwe> wrote in message
news:59ef504952a00@.uwe...
> Hi All ,
> Previously i have set up my replication to be on sync per hour but i want
> to change it to be continuously
> is there a way to do it w/o removing the existing publication & subscriber
> and thus save the task of re-creating the snapshot ?
> appreciate ur advice
> tks & rdgs
> --
> Message posted via http://www.droptable.com
|||tks Michael , but would you know of any drawbakcs using the continuously mode
? especially when the network is not that fast ? i.e while the previous
changes are still being replicated , there are new changes so will it cause
the system to be cranky or anything like that ?
tks & rdgs
Michael Hotek wrote:[vbcol=seagreen]
>Open the job in SQL Server Agent. Change the schedule to "start when SQL
>Server starts" or whatever it says. Remove the schedule that executed it
>once per hour.
>[quoted text clipped - 7 lines]
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...erver/200601/1
|||Changing the agent to only start when SQL Server Agent starts will have it
process only a single batch and then the distribution agent will shut down.
It will not restart until you restart SQL Server agent. Try it. Stop your
SQL Server agent, insert a bunch of rows into a replicated table, bounce SQL
Server, observe your distribution agent starting up, processing the batch
and then shutting down.
You also need to edit your agent to and add the -Continuous switch. Right
click on your agent, select agent properties, click on the steps tab, and
double click on run agent. Click in the commands text box and hit the end
key, then press the space bar and type in -Continuous. Restart your
distribution agent. If you distribution agent does fail, it will restart
again in 1 hour if you leave the scheduling option on.
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
"maxzsim via droptable.com" <u14644@.uwe> wrote in message
news:59f0f9aab1351@.uwe...
> tks Michael , but would you know of any drawbakcs using the continuously
> mode
> ? especially when the network is not that fast ? i.e while the previous
> changes are still being replicated , there are new changes so will it
> cause
> the system to be cranky or anything like that ?
> tks & rdgs
> Michael Hotek wrote:
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forums...erver/200601/1
|||No. It will simply send as much as possible during every synch cycle.
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com
"maxzsim via droptable.com" <u14644@.uwe> wrote in message
news:59f0f9aab1351@.uwe...
> tks Michael , but would you know of any drawbakcs using the continuously
> mode
> ? especially when the network is not that fast ? i.e while the previous
> changes are still being replicated , there are new changes so will it
> cause
> the system to be cranky or anything like that ?
> tks & rdgs
> Michael Hotek wrote:
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forums...erver/200601/1

changing replication type for hourly to continuously

Hi All ,
Previously i have set up my replication to be on sync per hour but i want
to change it to be continuously
is there a way to do it w/o removing the existing publication & subscriber
and thus save the task of re-creating the snapshot ?
appreciate ur advice
tks & rdgs
Message posted via http://www.droptable.comHi All ,
Furthermore , is there any drawbacks in changing it to continuously mode ?
kindly advise
tks & rdgs
maxzsim wrote:
>Hi All ,
> Previously i have set up my replication to be on sync per hour but i want
>to change it to be continuously
> is there a way to do it w/o removing the existing publication & subscriber
>and thus save the task of re-creating the snapshot ?
>appreciate ur advice
>tks & rdgs
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200601/1|||Open the job in SQL Server Agent. Change the schedule to "start when SQL
Server starts" or whatever it says. Remove the schedule that executed it
once per hour.
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com
"maxzsim via droptable.com" <u14644@.uwe> wrote in message
news:59ef504952a00@.uwe...
> Hi All ,
> Previously i have set up my replication to be on sync per hour but i want
> to change it to be continuously
> is there a way to do it w/o removing the existing publication & subscriber
> and thus save the task of re-creating the snapshot ?
> appreciate ur advice
> tks & rdgs
> --
> Message posted via http://www.droptable.com|||tks Michael , but would you know of any drawbakcs using the continuously mod
e
? especially when the network is not that fast ? i.e while the previous
changes are still being replicated , there are new changes so will it cause
the system to be cranky or anything like that ?
tks & rdgs
Michael Hotek wrote:[vbcol=seagreen]
>Open the job in SQL Server Agent. Change the schedule to "start when SQL
>Server starts" or whatever it says. Remove the schedule that executed it
>once per hour.
>
>[quoted text clipped - 7 lines]
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200601/1|||Changing the agent to only start when SQL Server Agent starts will have it
process only a single batch and then the distribution agent will shut down.
It will not restart until you restart SQL Server agent. Try it. Stop your
SQL Server agent, insert a bunch of rows into a replicated table, bounce SQL
Server, observe your distribution agent starting up, processing the batch
and then shutting down.
You also need to edit your agent to and add the -Continuous switch. Right
click on your agent, select agent properties, click on the steps tab, and
double click on run agent. Click in the commands text box and hit the end
key, then press the space bar and type in -Continuous. Restart your
distribution agent. If you distribution agent does fail, it will restart
again in 1 hour if you leave the scheduling option on.
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
"maxzsim via droptable.com" <u14644@.uwe> wrote in message
news:59f0f9aab1351@.uwe...
> tks Michael , but would you know of any drawbakcs using the continuously
> mode
> ? especially when the network is not that fast ? i.e while the previous
> changes are still being replicated , there are new changes so will it
> cause
> the system to be cranky or anything like that ?
> tks & rdgs
> Michael Hotek wrote:
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forum...server/200601/1|||No. It will simply send as much as possible during every synch cycle.
Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com
"maxzsim via droptable.com" <u14644@.uwe> wrote in message
news:59f0f9aab1351@.uwe...
> tks Michael , but would you know of any drawbakcs using the continuously
> mode
> ? especially when the network is not that fast ? i.e while the previous
> changes are still being replicated , there are new changes so will it
> cause
> the system to be cranky or anything like that ?
> tks & rdgs
> Michael Hotek wrote:
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forum...server/200601/1

Changing Remote Distributor

SQL 2000.

If I have a server setup to use a remote server for replication distribution can I actually change which server is the distributor?

Example

Server1 has publications
Server2 is distributor for Server1's Publication
Server3 is new hardware

Can i Make Server3 replace Server2 as the distributor?

How can I do this?No (and yes).

Microsoft says "No" (I have asked), the distributor server name cannot be changed. The reason is that this name is used in various replication system tables.

You can of course track down all system tables where the distributor name is used and change it. I tried it just for fun on a test system and it worked, but I would never do it on a production system and I would never recommend doing it to anybody.

changing recovery model to databases : replication

Using transactional replication and wanted to know if we change the recovery
model from simple to full or vice versa while replication is in place, does
it break anything ? Using SQL 2000
Thanks
nope, change away with no impact. However with full you will have to
maintain your log with more frequent dumps especially if your server is
under high load.
Hilary Cotter
Looking for a SQL Server replication book?
Now available for purchase at:
http://www.nwsu.com/0974973602.html
"Hassan" <fatima_ja@.hotmail.com> wrote in message
news:uUrkgx54EHA.1404@.TK2MSFTNGP11.phx.gbl...
> Using transactional replication and wanted to know if we change the
> recovery
> model from simple to full or vice versa while replication is in place,
> does
> it break anything ? Using SQL 2000
> Thanks
>

Changing publisher for Merge Replication

We have a database application that is currently being replicated to 2
remote sites. In the near future, I expect that this will increase to many
more sites. My question is this, as we move forward it is probable that at
some time we will run into the need to replace the server that currently
functions as the publisher server. Is there some way to change all of the
publications to use a different server without having to remove replication
and reinstalling it?
TIA
Ron Lounsbury
Ron,
in my experience it is only possible to migrate replication databases from
one server to another if the server names are identical. If they are not,
then the best thing to do is to script out replication, change the
references to servernames and job owners appropriately, drop the 'old'
publications on the old server then recreate the publications on the new
server.
Another poster ran into this type of issue after restoring a merge published
database to another server and found when he tried to add a column he got
the error: 21260 "Schema replication failed because database '%s' on server
'%s' is not the original Publisher of table '%s'".
I investigated this and in sysmerge articles there is a publisherid. This
ID needs to have a corresponding record in sysmergepublications. However, in
sysmergepublications, the 'publisher' column needs to match the servername,
which it didn't in his case as he had restored to another servername. So the
problem is that the replication metadata tables 'hardcode' the original
server name.
HTH,
Paul Ibison
|||Paul
Thanks for the response. It's not what I wanted to hear, but I was
pretty much expecting it. One of the problems we will have is that not all
of our subscribers are connected at any given time, making it a bit
difficult to push the database out again. Also, there is a certain amount
of time (@.20 min or so) that the subscriber can't use the system while we
are doing this. Oh well, as I said, I was afraid that this would be the
answer.
Ron L
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:O6cJxkJeEHA.3476@.tk2msftngp13.phx.gbl...
> Ron,
> in my experience it is only possible to migrate replication databases from
> one server to another if the server names are identical. If they are not,
> then the best thing to do is to script out replication, change the
> references to servernames and job owners appropriately, drop the 'old'
> publications on the old server then recreate the publications on the new
> server.
> Another poster ran into this type of issue after restoring a merge
published
> database to another server and found when he tried to add a column he got
> the error: 21260 "Schema replication failed because database '%s' on
server
> '%s' is not the original Publisher of table '%s'".
> I investigated this and in sysmerge articles there is a publisherid. This
> ID needs to have a corresponding record in sysmergepublications. However,
in
> sysmergepublications, the 'publisher' column needs to match the
servername,
> which it didn't in his case as he had restored to another servername. So
the
> problem is that the replication metadata tables 'hardcode' the original
> server name.
> HTH,
> Paul Ibison
>

Sunday, February 19, 2012

Changing IP addresses

We are planning on changing IP addresses on two database
servers that have SQL transactional replication between
them. Before I get into any trouble, do you see any
problem that could occur regarding the replication
communication between the servers. My plan is to change
the IP addresses and reboot the servers. I won't know
until I do this if the replication will start back up
successfully.
replication is insensitive to IP address changes.
there are some caveats
1) if you are using the client network utility to associate the IP address with the machine name you will have to update the ip addresses
2) if you are using a hosts file for name lookup s to associate the IP address with the machine name you will have to update the ip addresses in this file
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Jeff Steinweber" wrote:

> We are planning on changing IP addresses on two database
> servers that have SQL transactional replication between
> them. Before I get into any trouble, do you see any
> problem that could occur regarding the replication
> communication between the servers. My plan is to change
> the IP addresses and reboot the servers. I won't know
> until I do this if the replication will start back up
> successfully.
>

Changing IP

I am using merge replication with SQL ver 7, on a NT4 box. I need to
move one of seven subscribing servers to a new location which means
changing the IP address. I want to do the move without taking down
replication if possible. My plan is to move the box and change to new
IP address. Then update the WINS entry for the new address, and have
replication resume.
Should this work? Let me know if anyone can think of potential
problems.
thanks in advance, Jim
It should work. Replication is sensitive to subscriber name changes, not ip
address changes. Just make sure that you did not hard code an ip address in
the alias you may have created for this server in client network utility.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Jim" <ndpace@.att.net> wrote in message
news:c834d859.0409291039.4499a3df@.posting.google.c om...
> I am using merge replication with SQL ver 7, on a NT4 box. I need to
> move one of seven subscribing servers to a new location which means
> changing the IP address. I want to do the move without taking down
> replication if possible. My plan is to move the box and change to new
> IP address. Then update the WINS entry for the new address, and have
> replication resume.
> Should this work? Let me know if anyone can think of potential
> problems.
> thanks in advance, Jim
|||Guys!
I have the similar problem, but the server name will be changed also.
I believe it should be enough to call a kind of system SP, which will
replace old box names to the new ones. Could you point me to the right
direction?
Best regards,
Serge.
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:uEUCatlpEHA.1816@.TK2MSFTNGP09.phx.gbl...
> It should work. Replication is sensitive to subscriber name changes, not
ip
> address changes. Just make sure that you did not hard code an ip address
in
> the alias you may have created for this server in client network utility.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
>
> "Jim" <ndpace@.att.net> wrote in message
> news:c834d859.0409291039.4499a3df@.posting.google.c om...
>
|||Serge,
Use Master
go
Sp_DropServer 'OldName'
GO
Use Master
go
Sp_Addserver 'NewName', 'local'
GO
Stop and Start SQL Services
This will rename your server, but you'll need to set up
the publications from fresh afterwards.
HTH,
Paul Ibison
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)