SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


««12

Bloated Transaction Log Expand / Collapse
Author
Message
Posted Thursday, November 19, 2009 9:52 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, March 03, 2010 11:39 AM
Points: 1,483, Visits: 2,044
If you see nothing in the output from the following query then you can disable replication for that database.

select * from syspublications -- will check if there are any publications on that database

If none then you can use sp_removedbreplication - details on the use of this procedure can be found HERE.

Please don't do this unless you are sure that there are no other publications on that database. :)


David
Post #821755
Posted Thursday, November 19, 2009 12:57 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 4:09 AM
Points: 17,005, Visits: 12,131
Kwisatz78 (11/19/2009)
If so how do I resolve this?


Providing there is no existing transactional replication publication....

Create a new transactional replication publication.
Run sp_repldone in the published database
Drop the newly created publication.
Run DBCC OPENTRAN and see if the replicated and non-replicated lines remain.



Gail Shaw

We walk in the dark places no others will enter
We stand on the bridge and none may pass

Post #821905
Posted Friday, November 20, 2009 2:16 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, March 12, 2010 3:12 AM
Points: 100, Visits: 274
There is still a used publication in place so dropping replication isn't an option, I will look at using your method Gila and let you know how I get on.

Many thanks.
Post #822167
Posted Friday, November 20, 2009 4:36 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, March 03, 2010 11:39 AM
Points: 1,483, Visits: 2,044
What kind of publication is that? You had stated no logreader agent and you were trying to create a snapshot (which should be easily recreatable). Merge?

Regardless read the documentation for sp_repldone before you go and execute it. http://msdn.microsoft.com/en-us/library/ms173775.aspx

Especially considering you have other replication for that database....


David
Post #822249
Posted Friday, November 20, 2009 5:05 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, March 12, 2010 3:12 AM
Points: 100, Visits: 274
Hi this has worked a treat. I actually didn't need to create a new publication but by running:

EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1

and then waiting for the next transaction log backup I was able to shrink the file.

Thanks for all your help.
Post #822264
Posted Friday, November 20, 2009 5:37 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 4:09 AM
Points: 17,005, Visits: 12,131
That's a temporary fix. The create and drop publications is needed for a permanent fix if this is what I think it is (an imprperly cleaned up transactional replication publication).

If you check DBCC OPENTRAN, is there still a reference to replicated and unreplicated transactions? If so, all you've done is fix the symptoms for now, the problem will be back in a few days.



Gail Shaw

We walk in the dark places no others will enter
We stand on the bridge and none may pass

Post #822284
« Prev Topic | Next Topic »

««12

Permissions Expand / Collapse