Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2004, 08:48 AM
Authorized User
 
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maint Plan Optimization Failing

--here is the scheduled job

SET ARITHABORT ON
SET QUOTED_IDENTIFIER ON

EXECUTE master.dbo.xp_sqlmaint N'-PlanID 307DD5CB-26E7-4982-A075-C4458825A612 -Rpt "D:\Prod SQL Data\MSSQL$PRODUCTION\LOG\User Tables DB Maintenance Plan0.txt" -DelTxtRpt 1WEEKS -WriteHistory -RebldIdx 10 -RmUnusedSpace 50 10 '



--here is the output
[4] Database BACKLOGS: Index Rebuild (leaving 10%% free space)...

    Rebuilding indexes for table 'Can_Backlog_Format'
[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 1934: [Microsoft][ODBC SQL Server Driver][SQL Server]DBCC failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'.

    ** Execution Time: 0 hrs, 0 mins, 1 secs **

I've tried everything short of writing the optimization script by hand. all the backups etc work perfectly, just the optimizations blows out.

Any help greatly appreciated!
David

 
Old July 21st, 2004, 02:22 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default

See if this link gives you any help...

http://groups.google.com/groups?hl=e...a03%26rnum%3D1

 
Old July 21st, 2004, 02:24 AM
Authorized User
 
Join Date: Jun 2003
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, try this

http://groups.google.com/groups?q= ODBC SQLState: 42000 and MGK&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=1802e01c229c0%248567b0a0%249be62ecf%40tkmsf tngxa03&rnum=1






Similar Threads
Thread Thread Starter Forum Replies Last Post
Execution Plan of a Query asuni SQL Server 2005 0 August 6th, 2008 03:42 AM
How to delete a wizard plan... RinoDM SQL Server 2005 0 July 18th, 2007 10:13 AM
how to use v$sqlarea to see explain plan ramanadyv SQL Language 1 April 5th, 2006 08:14 AM
explain plan with bind variable ramanadyv SQL Language 0 March 2nd, 2006 05:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.