SA Developer .NET

Welcome to SA Developer .NET Sign in | Join | Help
in Search

Replication + Single User Mode

Last post 08-04-2008, 23:14 by GilaMonster. 4 replies.
Sort Posts: Previous Next
  •  07-31-2008, 13:33 13820

    Replication + Single User Mode

    How do you put the DB In Single User Mode if you have Transactional Replication Running and this DB is the Publisher? 

    ALTER DATABASE MyPublisherDB

      SET SINGLE_USER WITH ROLLBACK IMMEDIATE

    Yields: Nonqualified transactions are being rolled back. Estimated rollback completion: 100%


    A Program is only Complete when the Programmer Dies
  •  07-31-2008, 13:55 13822 in reply to 13820

    Re: Replication + Single User Mode

    Can you temporarily stop the log reader agent?

    Gail Shaw - SQL In the Wild
    SQL Server MVP
    --
    Chaos, panic and disorder. My job here is done!
  •  07-31-2008, 14:04 13823 in reply to 13822

    Re: Replication + Single User Mode

    I can, I'll try it shortly.


    A Program is only Complete when the Programmer Dies
  •  08-04-2008, 14:10 13884 in reply to 13822

    Re: Replication + Single User Mode

    Awesome Gila, stopping the Log Reader Agent is exactly what worked :)


    A Program is only Complete when the Programmer Dies
  •  08-04-2008, 23:14 13888 in reply to 13884

    Re: Replication + Single User Mode

    Pleasure
    Gail Shaw - SQL In the Wild
    SQL Server MVP
    --
    Chaos, panic and disorder. My job here is done!
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems