![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi We use Sql 2000. When defining a database maintenance plan one of the options is to optimize the database, reorganize data and index pages, remove unused pages etc. Is there a command to do this manualy (or in a job) and not by usung a DBM plan ? |
#3
| |||
| |||
|
|
"David Greenberg" <davidgr (AT) iba (DOT) org.il> wrote in message news:flaupm$35v$1 (AT) news2 (DOT) netvision.net.il... Hi We use Sql 2000. When defining a database maintenance plan one of the options is to optimize the database, reorganize data and index pages, remove unused pages etc. Is there a command to do this manualy (or in a job) and not by usung a DBM plan ? Yes. ALL of the features of Maintenance Plans are T-SQL commands. http://msdn2.microsoft.com/en-us/lib...8(SQL.80).aspx |
#4
| |||
| |||
|
|
Thanks for the link. Problem is that the "dbcc reindex" works on a single table , meaning that I have to write a command per table and have to remember to add a new line for new tables when I add them. Isn't there a single command that will take care of the whole database in one go ? |
#5
| |||
| |||
|
|
Hi We use Sql 2000. When defining a database maintenance plan one of the options is to optimize the database, reorganize data and index pages, remove unused pages etc. Is there a command to do this manualy (or in a job) and not by usung a DBM plan ? |
#6
| |||
| |||
|
|
Hi We use Sql 2000. When defining a database maintenance plan one of the options is to optimize the database, reorganize data and index pages, remove unused pages etc. Is there a command to do this manualy (or in a job) and not by usung a DBM plan ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |