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 DelawareNever 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?
"David Rawheiser" <rawhide58@.hotmail.com> wrote in message
news:DD3Bd.1194718$Gx4.69619@.bgtnsc04-news.ops.worldnet.att.net...
>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
No comments:
Post a Comment