Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Script required Expand / Collapse
Author
Message
Posted Wednesday, October 20, 2010 2:42 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 7:00 AM
Points: 1,054, Visits: 2,974
Hi,

Alerady I cofigured database mail with SMTP mail server.
Script require for automating alert an internal SQL database.(2005 version),

1. Exten scan fragmentation ( range between 25-50%)
2. Logical scan fragmentation (range > 25%)

please provide me these script for proactive alert purpose, and how to configured in Alert?

Thanks
ananda
Post #1007528
Posted Wednesday, October 20, 2010 2:47 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 12:24 PM
Points: 42,774, Visits: 35,872
Query sys.dm_db_index_physical_stats.

The column avg_fragmentation_in_percent is logical fragmentation if the row in question is for a clustered or nonclustered index, or extent fragmentation if the object in question is a heap.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1007529
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse