|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, April 30, 2013 9:07 AM
Points: 5,
Visits: 332
|
|
I know this is an old post, but I would advise to be very careful with this script.
In bol under indexproperty: IsPageLockDisallowed Page-locking value set by the ALLOW_PAGE_LOCKS option of ALTER INDEX. 1 = Page locking is disallowed. 0 = Page locking is allowed.
Script states IF (INDEXPROPERTY(@idxTableID, @idxname, 'IsPageLockDisallowed') = 1) SET @sParamSQL = @sParamSQL + ' ALLOW_PAGE_LOCKS = ON, ' ELSE SET @sParamSQL = @sParamSQL + ' ALLOW_PAGE_LOCKS = OFF, '
This is the oposite and can cause serious performance loss (extra locking).
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:21 AM
Points: 1,
Visits: 42
|
|
| Thanks for the script it worked perfectly.
|
|
|
|