|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SQL Server Offline EventIs there an event I can watch that SQL Server Fires when it goes off line?
I need to watch for an event to monitor SQL Server status, and when it is not online, switch to a backup server. I am using .NET (C# or VB) to do this. Can this be done? John Wright You could verify that the server is on 'online' by running a small, low
impact query every 30 seconds (frequency as needed.) For example, SELECT @@VERSION Set a short, but reasonable, timeout, and if the response is not received in that time, query again (or not), and take appropriate action. -- Show quoteArnie Rowland, Ph.D. Westwood Consulting, Inc Most good judgment comes from experience. Most experience comes from bad judgment. - Anonymous "John Wright" <riley_wri***@notmail.com> wrote in message news:eLadnRSzGHA.2208@TK2MSFTNGP03.phx.gbl... > Is there an event I can watch that SQL Server Fires when it goes off line? > I need to watch for an event to monitor SQL Server status, and when it is > not online, switch to a backup server. I am using .NET (C# or VB) to do > this. Can this be done? > > John Wright > |
|||||||||||||||||||||||