-- Force the db offline -- ALTER DATABASE [MyDB-DEV-NEW] SET OFFLINE -- Same but rollback pending transactions -- ALTER DATABASE [MyDB-DEV-NEW] SET OFFLINE WITH ROLLBACK IMMEDIATE
Joe's Knowledge Base - a collection of various tips-n-tricks for SQL Server. Note: best effort to site sources where applicable, otherwise curated from BOL/MSDN or self-created.
No comments:
Post a Comment