Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Script required Expand / Collapse
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: Thursday, December 1, 2016 9:51 PM
Points: 1,184, Visits: 3,465

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?

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



Group: General Forum Members
Last Login: Saturday, December 3, 2016 5:18 AM
Points: 45,619, Visits: 44,147
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, MVP, M.Sc (Comp Sci)
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