 |
|
 |
|
Next: Minimum Visual Studio 2008 version to code SQL As..
|
| Author |
Message |
External

Since: Dec 15, 2008 Posts: 2
|
(Msg. 1) Posted: Mon Dec 15, 2008 6:43 pm
Post subject: cant drop publication with sp_droppublication takes hours to run Archived from groups: microsoft>public>sqlserver>replication (more info?)
|
|
|
Hi, i want to drop a publication of one SQL 2005 SP2 server, and the
distribution database is above 40gb (becasue of an sp2 bug), when i
try to run
sp_droppublication it stays running for more than 7 hours with 100% of
disk usage, until i kill the proccess because of production times of
the server.
is there anyway to ignore this step and get the publication droped or
the database in a non publicated state?
can i run sp_replicationdboption if i havent drop the publication
first?
thanks in advance
DECLARE @publicationDB AS sysname;
DECLARE @publication AS sysname;
SET @publicationDB = N'AdventureWorks';
SET @publication = N'AdvWorksProductTran';
-- Remove a transactional publication.
USE [AdventureWorks]
EXEC sp_droppublication @publication = @publication;
-- Remove replication objects from the database.
USE [master]
EXEC sp_replicationdboption
@dbname = @publicationDB,
@optname = N'publish',
@value = N'false';
GO >> Stay informed about: cant drop publication with sp_droppublication takes hours .. |
|
| Back to top |
|
 |  |
External

Since: Jan 16, 2008 Posts: 143
|
(Msg. 2) Posted: Tue Dec 16, 2008 6:12 am
Post subject: RE: cant drop publication with sp_droppublication takes hours to run [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Yes you can run sp_replicationdboption 'AdventureWorks','publish','false'
However I think you would be best off trying to figure out where the
blocking is occurring and stopping the process which is doing the blocking.
" " wrote:
> Hi, i want to drop a publication of one SQL 2005 SP2 server, and the
> distribution database is above 40gb (becasue of an sp2 bug), when i
> try to run
> sp_droppublication it stays running for more than 7 hours with 100% of
> disk usage, until i kill the proccess because of production times of
> the server.
>
> is there anyway to ignore this step and get the publication droped or
> the database in a non publicated state?
> can i run sp_replicationdboption if i havent drop the publication
> first?
>
> thanks in advance
>
>
> DECLARE @publicationDB AS sysname;
> DECLARE @publication AS sysname;
> SET @publicationDB = N'AdventureWorks';
> SET @publication = N'AdvWorksProductTran';
>
> -- Remove a transactional publication.
> USE [AdventureWorks]
> EXEC sp_droppublication @publication = @publication;
>
> -- Remove replication objects from the database.
> USE [master]
> EXEC sp_replicationdboption
> @dbname = @publicationDB,
> @optname = N'publish',
> @value = N'false';
> GO
>
> >> Stay informed about: cant drop publication with sp_droppublication takes hours .. |
|
| Back to top |
|
 |  |
External

Since: Dec 15, 2008 Posts: 2
|
(Msg. 3) Posted: Tue Dec 16, 2008 8:10 am
Post subject: Re: cant drop publication with sp_droppublication takes hours to run [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks Hilary ill try that. however i think that the problem is not a
bloking but the size of the Log and the distribtion database, both
above 40gb because of a bug in SP2
regards!
On 16 dic, 12:12, Hilary Cotter wrote:
> Yes you can run sp_replicationdboption 'AdventureWorks','publish','false'
>
> However I think you would be best off trying to figure out where the
> blocking is occurring and stopping the process which is doing the blocking.
>
> " " wrote:
> > Hi, i want todropa publication of one SQL 2005 SP2 server, and the
> > distribution database is above 40gb (becasue of an sp2 bug), when i
> > try to run
> > sp_droppublication it stays running for more than7hourswith 100% of
> > disk usage, until i kill the proccess because of production times of
> > the server.
>
> > is there anyway to ignore this step and get the publication droped or
> > the database in a non publicated state?
> > can i run sp_replicationdboption if i haventdropthe publication
> > first?
>
> > thanks in advance
>
> > DECLARE @publicationDB AS sysname;
> > DECLARE @publication AS sysname;
> > SET @publicationDB = N'AdventureWorks';
> > SET @publication = N'AdvWorksProductTran';
>
> > -- Remove a transactional publication.
> > USE [AdventureWorks]
> > EXEC sp_droppublication @publication = @publication;
>
> > -- Removereplicationobjects from the database.
> > USE [master]
> > EXEC sp_replicationdboption
> > @dbname = @publicationDB,
> > @optname = N'publish',
> > @value = N'false';
> > GO >> Stay informed about: cant drop publication with sp_droppublication takes hours .. |
|
| Back to top |
|
 |  |
External

Since: Dec 12, 2008 Posts: 9
|
(Msg. 4) Posted: Thu Dec 18, 2008 9:51 am
Post subject: Re: cant drop publication with sp_droppublication takes hours to run [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Dec 16, 11:10 am, wrote:
> Thanks Hilary ill try that. however i think that the problem is not a
> bloking but the size of the Log and the distribtion database, both
> above 40gb because of a bug in SP2
> regards!
>
> On 16 dic, 12:12, Hilary Cotter wrote:
>
>
>
> > Yes you can run sp_replicationdboption 'AdventureWorks','publish','false'
>
> > However I think you would be best off trying to figure out where the
> > blocking is occurring and stopping the process which is doing the blocking.
>
> > " " wrote:
> > > Hi, i want todropa publication of one SQL 2005 SP2 server, and the
> > > distribution database is above 40gb (becasue of an sp2 bug), when i
> > > try to run
> > > sp_droppublication it stays running for more than7hourswith 100% of
> > > disk usage, until i kill the proccess because of production times of
> > > the server.
>
> > > is there anyway to ignore this step and get the publication droped or
> > > the database in a non publicated state?
> > > can i run sp_replicationdboption if i haventdropthe publication
> > > first?
>
> > > thanks in advance
>
> > > DECLARE @publicationDB AS sysname;
> > > DECLARE @publication AS sysname;
> > > SET @publicationDB = N'AdventureWorks';
> > > SET @publication = N'AdvWorksProductTran';
>
> > > -- Remove a transactional publication.
> > > USE [AdventureWorks]
> > > EXEC sp_droppublication @publication = @publication;
>
> > > -- Removereplicationobjects from the database.
> > > USE [master]
> > > EXEC sp_replicationdboption
> > > @dbname = @publicationDB,
> > > @optname = N'publish',
> > > @value = N'false';
> > > GO- Hide quoted text -
>
> - Show quoted text -
do you see blocking anywhere when you do this? had this a few times
and i think every time someone was running something and it blocked my
drop publication >> Stay informed about: cant drop publication with sp_droppublication takes hours .. |
|
| Back to top |
|
 |  |
| Related Topics: | Monitor shown publication but publication doesn't exist - I have 2 SQL Server 2000 SP3a in merge replication (1 publicator and 1 subscriptor). I added another SQL Server 2000 SP3a as subscriber; Then the publication has disappeared, the monitor shows it, but I can't run the snapshot neither replication and..
Change Publication Name - We have a problem with sp_repladdcolumn. We have publication names that have a comma in them. This causes sp_repladdcolumn not to work right. Is there a way to rename a publication without having to drop, recreate, or reinitialize? Thanks, Ken
regarding changing the option in publication - Hi Guys, If I change the schema seting in publication, or I change "copy nocluster index option" from false to true in publication for one table, I remember it will reinitialize the snapshot and recreate the table schema in subscription. But...
Publication falls to inactive - Hi all We are using a pull publication what works well. After a time, maybe next day, the publication must be reinitialized again. The duration property of the publication does not define a final date. I could not find other properties controlling th...
The initial snapshot for publication '' is not yet available - SQL 2005 - SP1 We had a server reboot last night and now my replication-monitor with message 'The initial snapshot for publication '' is not yet available on Distributor-Subscriber tab and is NOT replicating to subscriber. Upon debugging I found, my.. |
|
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
|
|
|
|
 |
|
|