Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 sql

Author  Topic 

jhunu
Starting Member

18 Posts

Posted - 2011-12-16 : 07:41:28
query to take database offline (without using ssms)

pnash
Starting Member

26 Posts

Posted - 2011-12-16 : 07:43:43
This command will birng your database to offline without waiting for any active transaction to complete,
ALter database dbname set offline with rollback immediate.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2011-12-16 : 10:07:03
without using ssms

look up sqlcmd



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

jhunu
Starting Member

18 Posts

Posted - 2011-12-17 : 00:25:48
Thanks.
Go to Top of Page
   

- Advertisement -