From: MichaelH on
We have a procedure that collects fragmentation data before re-
indexing a production database.

On two separate occasions, when executing
'sys.dm_db_index_physical_stats', users have reported timeout issues.

The mode is 'LIMITED'

Thanks in advance.
From: TheSQLGuru on
You need to do more investigation.

1) was there blocking that caused the timeouts?

2) do a fileIO and waitstats analysis during execution (and when it is NOT
executing for comparison) to see where the actual problem is if it is not
blocking.

3) do you get timeouts when this is not running?


--
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net


"MichaelH" <bmiguelh(a)gmail.com> wrote in message
news:123da4c4-3cb1-474d-bd25-8cfb113e7d40(a)r24g2000yqd.googlegroups.com...
> We have a procedure that collects fragmentation data before re-
> indexing a production database.
>
> On two separate occasions, when executing
> 'sys.dm_db_index_physical_stats', users have reported timeout issues.
>
> The mode is 'LIMITED'
>
> Thanks in advance.


From: Andrew J. Kelly on
Most likely this is due to a poor I/O subsystem configuration since this can
do a lot of physical I/O on larger tables or indexes even in Limited mode.
But you need to watch your perfmon counters and things like file & wait
stats to see what is holding things up.

--

Andrew J. Kelly SQL MVP
Solid Quality Mentors

"MichaelH" <bmiguelh(a)gmail.com> wrote in message
news:123da4c4-3cb1-474d-bd25-8cfb113e7d40(a)r24g2000yqd.googlegroups.com...
> We have a procedure that collects fragmentation data before re-
> indexing a production database.
>
> On two separate occasions, when executing
> 'sys.dm_db_index_physical_stats', users have reported timeout issues.
>
> The mode is 'LIMITED'
>
> Thanks in advance.

From: Uri Dimant on
Hi
As alternative see Ola's blog
http://ola.hallengren.com/




"MichaelH" <bmiguelh(a)gmail.com> wrote in message
news:123da4c4-3cb1-474d-bd25-8cfb113e7d40(a)r24g2000yqd.googlegroups.com...
> We have a procedure that collects fragmentation data before re-
> indexing a production database.
>
> On two separate occasions, when executing
> 'sys.dm_db_index_physical_stats', users have reported timeout issues.
>
> The mode is 'LIMITED'
>
> Thanks in advance.