Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Set database offline/online remotely SQL 2005

$
0
0

Hi,

One of our cluster Server got disk issue and msdb database goes offline/unavailable on that sql server.

I have to manually take database offline and then online using t-sql

I was thinking if i can run a query on that server remotely to check the state of msdb and if it's unavailable i will set to offline and then online. but don't know the code to do that... i thought of using Linked Server functionality but coudn't get work around.

Thanks

We are using SQL Server 2005 SP3.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>