April 2, 2012 at 11:35 pm
Can any one help to create a script to find out sql server health check i.e (We want to create automated SP to find
the Sql server state ,current server node i.e is running,no database and
the status of databases (offline/online/recoverymode...etc), jobs that are running on particular instance.
Please help .
Many Thanks.
April 3, 2012 at 1:39 am
Start with the Policy-based management policies that ship with SQL. You'll have to load them into the list of policies, they're somewhere in the install directory of SQL.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
April 3, 2012 at 3:27 am
Thanks for reply,
I am not having experience on development part.can you please help me out
April 3, 2012 at 3:44 am
bala2 (4/2/2012)
Can any one help to create a script to find out sql server health check i.e (We want to create automated SP to findthe Sql server state ,current server node i.e is running,no database and
the status of databases (offline/online/recoverymode...etc), jobs that are running on particular instance.
Please help .
Many Thanks.
You may need to create more than 1 stored procedure for all the status that you want. I think you need to write vb/powershell script to get the status of the SQL Server Service (running/stopped) as it can't be identified from within the stored procedure if the SQL Server itself is stopped.
However, you can write the stored procedure to get the status of rest all the things such as status of databases, jobs etc. You can create a maintenace database on some test server then you can configure a SSIS package to get the data from all other servers & insert it in the maintenance database.
April 3, 2012 at 6:24 am
bala2 (4/3/2012)
Thanks for reply,I am not having experience on development part.can you please help me out
There's no development required in what I suggested.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
April 3, 2012 at 7:41 am
GilaMonster (4/3/2012)
bala2 (4/3/2012)
Thanks for reply,I am not having experience on development part.can you please help me out
There's no development required in what I suggested.
Do we have the option to get the notifications on whether the SQL Server service is running or not or to check whether any particular job is running or not by using Policy Based Management?
April 3, 2012 at 8:02 am
Divine Flame (4/3/2012)
GilaMonster (4/3/2012)
bala2 (4/3/2012)
Thanks for reply,I am not having experience on development part.can you please help me out
There's no development required in what I suggested.
Do we have the option to get the notifications on whether the SQL Server service is running or not or to check whether any particular job is running or not by using Policy Based Management?
No, but I did say 'Start with Policy-based management'
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
April 3, 2012 at 8:31 am
GilaMonster (4/3/2012)
Divine Flame (4/3/2012)
GilaMonster (4/3/2012)
bala2 (4/3/2012)
Thanks for reply,I am not having experience on development part.can you please help me out
There's no development required in what I suggested.
Do we have the option to get the notifications on whether the SQL Server service is running or not or to check whether any particular job is running or not by using Policy Based Management?
No, but I did say 'Start with Policy-based management'
Got it 🙂 I thought I missed something.
April 4, 2012 at 7:25 am
Search the web for Brent Ozar blitz (or sql server take over) and also for Glenn Berry diagnostic. They both have great stuff.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply