all groups > sql server (alternate) > december 2004 >
You're in the

sql server (alternate)

group:

HELP! Non-Replicated DB thinks its a Publisher


HELP! Non-Replicated DB thinks its a Publisher David Rawheiser
12/31/2004 3:24:20 AM
sql server (alternate):
I hosed myself, please help me somebody.

We have a development server (SQL7) where the database is a restored copy of
production (where we use replication, but not in the development
environment).

While we rebuild the server recently (so we could move off of NT onto 2000),
everything looked to be working fine.

But I recently, messed up and did a massive update filling the transaction
log of the development server. Now I can't update data in development.

I tried to do my usual:

BACKUP LOG LAMS WITH Truncate_only

only to get a message:

The log was not truncated because records at the beginning of the log are
pending replication. Ensure the Log Reader Agent is running or use
sp_repldone to mark transactions as distributed.

Did a little research into BOL and tried to call the following two procs:

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

exec sp_repltrans

Both of which gave me an error of :
The database is not published.

Which it isn't as we don't run replication in the development environment.

I stopped and restarted the SQL Service (as that has cleared issues in the
past), but didn't reboot the server.

How can I make the database not think It's replicated (or that its caught
up?).

I was thinking, would I be even be able to do another restore of a more
recent copy of Production?

Sincerely ...
Depressed in Delaware


Re: HELP! Non-Replicated DB thinks its a Publisher David Rawheiser
1/6/2005 3:32:27 AM
Never Mind, I restored development from a more recent copy of production.

Is there a command to fix a SQL 7 DB when it gets confused about
replication?

[quoted text, click to view]

AddThis Social Bookmark Button