![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hi maybe someone has a script which recreates the indexses on db? i think the best way is to use CREATE unique INDEX WITH DROP_EXISTING and the procedure sp_MSforeachtable the problem is that i don't know how to "join" these 2 options as every table has lots of indexses... currently i use this: exec sp_MSforeachtable @command1="print '?' DBCC DBREINDEX ('?')" but it is 2x less effective as "CREATE unique INDEX WITH DROP_EXISTING" thanx P.S. i am not too good in sql programing ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |