DiscountASP.NET Forums                  

Go Back   DiscountASP.NET Forums > Site Programming, Development and Design > Tutorials

Notices

Tutorials Step by steps to take you through some useful and popular tasks and applications.

Closed Thread
 
Thread Tools Search this Thread
Old 02-15-2010, 08:53 AM   #1
dmitri
DiscountASP.NET Staff
 
dmitri's Avatar
 
Join Date: Sep 2009
Posts: 588
Bringing Your SQL Server 2008 Database Back Online

If you accidentally took your SQL 2008 database offline, don't panic. You will still be able to connect to your master database as well as to all other additional database on your account that are online. You should be able to bring the database back online by yourself if you follow the instructions below:
  • Open Management Studio and in the "Connect to Server" dialog box enter your connection parameters
  • Click the "Options >>" button and navigate to the "Connections Properties" page
  • In the "Connect to database" dialog box type the word master.
  • Open up a New Query window and paste the following T-SQL code into it:

Code:
USE [master] 
GO 
 
ALTER DATABASE [SQL2008_xxxxxx_yyyyyy] SET ONLINE 
GO
  • Replace SQL2008_xxxxxx_yyyyyy with your actual database (the one you are trying to bring online)
  • Execute the code
If the code executed successfully, but you do not see the change in your database status, disconnect from the server and connect again. This time, you can connect to your default database instead of master.
dmitri is offline  
Old 02-15-2010, 08:14 PM   #2
bruce
DiscountASP.NET Staff
 
Join Date: Jan 2003
Posts: 6,501
Good post.. dmitri
__________________
Bruce

DiscountASP.NET
bruce is offline  
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help configuring SQL Server 2008 Database mattvietnam Databases 9 07-03-2009 08:23 AM
Connection String for SQL server 2008 database tvb2727 Databases 1 05-21-2009 06:09 PM
SQL Server 2008 Database Name schmedlap Databases 1 01-10-2009 06:30 AM
SQL Server 2008 via Database Manager bdgross SQL 2008 Beta Hosting Program [closed] 4 07-15-2008 06:56 AM
Connecting to the Microsoft SQL Server 2008 beta database using SQL SSMS 2008 junior SQL 2008 Beta Hosting Program [closed] 9 06-26-2008 05:04 AM


All times are GMT -7. The time now is 03:58 PM.


vBulletin ©Jelsoft Enterprises Ltd.