![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
i wrote a custom db maintenance procedure to reindex various tables in my database. depending on the parameter passed to the procedure, a group of tables get reindexed. There is a scheduled job that runs daily that calls this maintenance procedure. im having an issue where this job is failing about 25% of the time. i know that the issue ocurrs while attempting to reindex some of the largest tables in the database because i'm logging the reindexing. the failure causes the server to completely freeze and we are forced to hard reboot. the script looks like this: DBCC DBREINDEX ('myDB.dbo.myTableA') INSERT INTO tLog (log_type, log_text) values (2,'Done reindexing myTableA') DBCC DBREINDEX ('myDB.dbo.myTableB') INSERT INTO tLog (log_type, log_text) values (2,'Done reindexing myTableB') DBCC DBREINDEX ('myDB.dbo.myTableC') INSERT INTO tLog (log_type, log_text) values (2,'Done reindexing myTableC') |
#3
| |||
| |||
|
|
i wrote a custom db maintenance procedure to reindex various tables in my database. depending on the parameter passed to the procedure, a group of tables get reindexed. There is a scheduled job that runs daily that calls this maintenance procedure. im having an issue where this job is failing about 25% of the time. i know that the issue ocurrs while attempting to reindex some of the largest tables in the database because i'm logging the reindexing. the failure causes the server to completely freeze and we are forced to hard reboot. the script looks like this: DBCC DBREINDEX ('myDB.dbo.myTableA') INSERT INTO tLog (log_type, log_text) values (2,'Done reindexing myTableA') DBCC DBREINDEX ('myDB.dbo.myTableB') INSERT INTO tLog (log_type, log_text) values (2,'Done reindexing myTableB') DBCC DBREINDEX ('myDB.dbo.myTableC') INSERT INTO tLog (log_type, log_text) values (2,'Done reindexing myTableC') |
![]() |
| Thread Tools | |
| Display Modes | |
| |