Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Replication / March 2006

Tip: Looking for answers? Try searching our database.

sp_repldone won't truncate the log

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam - 28 Mar 2006 23:47 GMT
I have a SQL 7 database who's log is growing and cannot be truncated. It is a
copy of a database from another environment and is involved in Transactional
Replication.

When I try to run sp_repldone, it says the database is not published (which
is true). When I try to truncate the log with no_log option, the error msg
says I need to run sp_repldone to do so. What can be done here?

Adam
Paul Ibison - 29 Mar 2006 08:54 GMT
Adam,
try enabling the database for publication then run sp_repldone.
 Cheers,
          Paul Ibison SQL Server MVP, www.replicationanswers.com
            (recommended sql server 2000 replication book:
            http://www.nwsu.com/0974973602p.html)
Adam - 29 Mar 2006 23:56 GMT
I published the database which enabled me to run the following SQL but I
still am getting the same error when trying to truncate the log

sp_repldone  @xactid =  null
   ,  @xact_seqno =  null
    ,  @reset =  1

Adam

> Adam,
> try enabling the database for publication then run sp_repldone.
>   Cheers,
>            Paul Ibison SQL Server MVP, www.replicationanswers.com
>              (recommended sql server 2000 replication book:
>              http://www.nwsu.com/0974973602p.html)
Adam - 30 Mar 2006 00:09 GMT
It finally worked but I had to also have a database subscribe to the
publication. Thank you for your help.

Adam

> Adam,
> try enabling the database for publication then run sp_repldone.
>   Cheers,
>            Paul Ibison SQL Server MVP, www.replicationanswers.com
>              (recommended sql server 2000 replication book:
>              http://www.nwsu.com/0974973602p.html)
Paul Ibison - 30 Mar 2006 09:48 GMT
Thanks for the update Adam - I'll add this to my site under your name
(surname?).
  Cheers,
           Paul Ibison SQL Server MVP, www.replicationanswers.com
             (recommended sql server 2000 replication book:
             http://www.nwsu.com/0974973602p.html)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.