dbTalk Databases Forums  

Maintenance Plan Optimization job fails

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Maintenance Plan Optimization job fails in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stephen Rybacki
 
Posts: n/a

Default Maintenance Plan Optimization job fails - 04-01-2004 , 12:06 PM






I have a production database that I created a maintenance plan for that includes integrity checks, optimizations, DB Backup and trans log backups. Everything works fine except that the optimization job fails every time. This is the case on our identical test and development databases as well. Specifically when looking at the maintenance plan history, the failure is due to "options not being set for "QUOTED_IDENTIFIERS". I have set this option in each of these databases via both the database options dialog and using the db_options stored proc. The bottom line is that this option is set and the job still fails. I even retired the job with it unset! I am thoroughly stumped! Anyone have any thoughts

PS. These databases do in fact have computed fields in them, hence the need for this option to be set (along with ARITHABORT). Originally, the maintenance plan failure was referencing ARITHABORT to, but after I set this via the sp_dboptions SP, that part of it went away even though the QUOTED_IDENTIFIERS error hangs on doggedly

Thanks

Stephen

Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Maintenance Plan Optimization job fails - 04-01-2004 , 01:12 PM






When SQL Agent logs in to run the maintenance plans, SQL
Agent uses set options that won't work if you have indexes
on computed columns. You need to pull the dbcc reindex (and
checkdb) out of the maintenance plan and create your own
T-SQL scripts to do this which have the appropriate
settings, e.g.
SET ARITHABORT ON
SET QUOTED_IDENTIFIER ON
DBCC <dbreindex, checkdb, etc>

-Sue

On Thu, 1 Apr 2004 09:06:09 -0800, Stephen Rybacki
<anonymous (AT) discussions (DOT) microsoft.com> wrote:

Quote:
I have a production database that I created a maintenance plan for that includes integrity checks, optimizations, DB Backup and trans log backups. Everything works fine except that the optimization job fails every time. This is the case on our identical test and development databases as well. Specifically when looking at the maintenance plan history, the failure is due to "options not being set for "QUOTED_IDENTIFIERS". I have set this option in each of these databases via both the database options dialog and using the db_options stored proc. The bottom line is that this option is set and the job still fails. I even retired the job with it unset! I am thoroughly stumped! Anyone have any thoughts?

PS. These databases do in fact have computed fields in them, hence the need for this option to be set (along with ARITHABORT). Originally, the maintenance plan failure was referencing ARITHABORT to, but after I set this via the sp_dboptions SP, that part of it went away even though the QUOTED_IDENTIFIERS error hangs on doggedly.

Thanks,

Stephen


Reply With Quote
  #3  
Old   
Stephen Rybacki
 
Posts: n/a

Default Re: Maintenance Plan Optimization job fails - 04-01-2004 , 02:06 PM



Sue

Thanks for the response. To the best of my knowledge, I don't have an index set on a computed column. Could this happen because of Full-Text Indexing? Could there be a hidden index I am missing? I am by no means a SQL server guru so pardon me if I am a bit ignorant here..

Stephe

----- Sue Hoegemeier wrote: ----

When SQL Agent logs in to run the maintenance plans, SQ
Agent uses set options that won't work if you have indexe
on computed columns. You need to pull the dbcc reindex (an
checkdb) out of the maintenance plan and create your ow
T-SQL scripts to do this which have the appropriat
settings, e.g
SET ARITHABORT O
SET QUOTED_IDENTIFIER O
DBCC <dbreindex, checkdb, etc

-Su

On Thu, 1 Apr 2004 09:06:09 -0800, Stephen Ryback
<anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a production database that I created a maintenance plan for that includes integrity checks, optimizations, DB Backup and trans log backups. Everything works fine except that the optimization job fails every time. This is the case on our identical test and development databases as well. Specifically when looking at the maintenance plan history, the failure is due to "options not being set for "QUOTED_IDENTIFIERS". I have set this option in each of these databases via both the database options dialog and using the db_options stored proc. The bottom line is that this option is set and the job still fails. I even retired the job with it unset! I am thoroughly stumped! Anyone have any thoughts
PS. These databases do in fact have computed fields in them, hence the need for this option to be set (along with ARITHABORT). Originally, the maintenance plan failure was referencing ARITHABORT to, but after I set this via the sp_dboptions SP, that part of it went away even though the QUOTED_IDENTIFIERS error hangs on doggedly
Thanks
Stephe



Reply With Quote
  #4  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Maintenance Plan Optimization job fails - 04-01-2004 , 03:05 PM



Stephen,
There are probably statistics on the column. You will hit
the same issue in such a case.
It's best to just write your own job to handle the
reindexing and checkdbs for the databases that have computed
columns (or indexed views).

-Sue

On Thu, 1 Apr 2004 11:06:11 -0800, Stephen Rybacki
<anonymous (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Sue,

Thanks for the response. To the best of my knowledge, I don't have an index set on a computed column. Could this happen because of Full-Text Indexing? Could there be a hidden index I am missing? I am by no means a SQL server guru so pardon me if I am a bit ignorant here...

Stephen

----- Sue Hoegemeier wrote: -----

When SQL Agent logs in to run the maintenance plans, SQL
Agent uses set options that won't work if you have indexes
on computed columns. You need to pull the dbcc reindex (and
checkdb) out of the maintenance plan and create your own
T-SQL scripts to do this which have the appropriate
settings, e.g.
SET ARITHABORT ON
SET QUOTED_IDENTIFIER ON
DBCC <dbreindex, checkdb, etc

-Sue

On Thu, 1 Apr 2004 09:06:09 -0800, Stephen Rybacki
anonymous (AT) discussions (DOT) microsoft.com> wrote:

I have a production database that I created a maintenance plan for that includes integrity checks, optimizations, DB Backup and trans log backups. Everything works fine except that the optimization job fails every time. This is the case on our identical test and development databases as well. Specifically when looking at the maintenance plan history, the failure is due to "options not being set for "QUOTED_IDENTIFIERS". I have set this option in each of these databases via both the database options dialog and using the db_options stored proc. The bottom line is that this option is set and the job still fails. I even retired the job with it unset! I am thoroughly stumped! Anyone have any thoughts?
PS. These databases do in fact have computed fields in them, hence the need for this option to be set (along with ARITHABORT). Originally, the maintenance plan failure was referencing ARITHABORT to, but after I set this via the sp_dboptions SP, that part of it went away even though the QUOTED_IDENTIFIERS error hangs on doggedly.
Thanks,
Stephen




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.