/ Published in: SQL
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ALTER DATABASE DB_NAME SET SINGLE_USER WITH ROLLBACK IMMEDIATE GO -- do stuff GO ALTER DATABASE DB_NAME_NEW SET MULTI_USER -- set back to multi user GO
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)