|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, January 12, 2009 4:24 PM
Points: 8,
Visits: 38
|
|
Hi,
While running maintenance plan for reoranizing the index for user database we are getting the following error
"Failed -1073548784) Executing the query "ALTER INDEX [PK__EventStage__46AF6B36] ON [Event].[EventStage] REORGANIZE WITH ( LOB_COMPACTION = OFF ) " failed with the following error: "Cannot find index 'PK__EventStage__46AF6B36'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."
Please help us to resolve this issue.
The error occurs while reorganizing the index for operations manager database.
Regards, Karthikraj.L
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 3:18 PM
Points: 37,744,
Visits: 30,025
|
|
Please run the following query in that database. What does it return?
SELECT count(*) from sys.objects where name = 'PK__EventStage__46AF6B36'
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:06 AM
Points: 900,
Visits: 654
|
|
Also verify whether index exists or not from below query...
SELECT * FROM sys.indexes WHERE name = 'PK__EventStage__46AF6B36'
Abhijit - http://abhijitmore.wordpress.com
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, May 24, 2012 2:07 AM
Points: 1,
Visits: 70
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, October 27, 2010 9:59 AM
Points: 9,
Visits: 14
|
|
| Let's suppose the command returns 0! What's the next step if the rebuild of the index in the maintenance plan is unsuccessful?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
|
|
Rob44 (3/8/2010) Let's suppose the command returns 0! What's the next step if the rebuild of the index in the maintenance plan is unsuccessful? We can give manual run to ALTER INDEX [PK__EventStage__46AF6B36] ON [Event].[EventStage] REORGANIZE WITH ( LOB_COMPACTION = OFF )
and see if problem persists or not
-------Bhuvnesh---------- While 1 = 1 (Learning SQL....) Click to get fast response of your post
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Yesterday @ 5:01 PM
Points: 10,990,
Visits: 10,545
|
|
lkarthikraj-609584 (1/12/2009) Cannot find index 'PK__EventStage__46AF6B36' That's the problem with relying on system-generated names for constraints, such as primary keys. You would think Microsoft would know better.
USE tempdb; GO CREATE TABLE #SystemGenerated ( -- No constraint name specified row_id INTEGER IDENTITY NOT NULL PRIMARY KEY ); GO CREATE TABLE #Explicit ( row_id INTEGER IDENTITY NOT NULL, -- Explicitly named constraint CONSTRAINT [PK #Explicit row_id] PRIMARY KEY CLUSTERED (row_id ASC) WITH (FILLFACTOR = 100) ON [PRIMARY] ); GO -- Show primary key details SELECT constraint_name = name, type_desc, is_system_named, table_schema = SCHEMA_NAME([schema_id]), table_name = OBJECT_NAME(parent_object_id) FROM sys.key_constraints WHERE parent_object_id = OBJECT_ID(N'tempdb..#SystemGenerated', N'U') OR parent_object_id = OBJECT_ID(N'tempdb..#Explicit', N'U'); GO -- Clean up DROP TABLE #SystemGenerated, #Explicit;
Paul
Paul White SQL Server MVP SQLblog.com @SQL_Kiwi
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 7:36 AM
Points: 588,
Visits: 1,155
|
|
Bhuvnesh (3/10/2010)
Rob44 (3/8/2010) Let's suppose the command returns 0! What's the next step if the rebuild of the index in the maintenance plan is unsuccessful?We can give manual run to ALTER INDEX [PK__EventStage__46AF6B36] ON [Event].[EventStage] REORGANIZE WITH ( LOB_COMPACTION = OFF )
and see if problem persists or not
Hi ,
its working fine while running this on query analyzer. issues coming while running the maintanance plan.
Karthik Pls update if you found solution.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 7:36 AM
Points: 588,
Visits: 1,155
|
|
sudhakara (6/6/2010)
Bhuvnesh (3/10/2010)
Rob44 (3/8/2010) Let's suppose the command returns 0! What's the next step if the rebuild of the index in the maintenance plan is unsuccessful?We can give manual run to ALTER INDEX [PK__EventStage__46AF6B36] ON [Event].[EventStage] REORGANIZE WITH ( LOB_COMPACTION = OFF )
and see if problem persists or not Hi , its working fine while running this on query analyzer. issues coming while running the maintanance plan. Karthik Pls update if you found solution.
Simulated and Fixed: There is a DTS job for creating and dropping the objects in the database everyday at perticular time. This has been found by using the schema change report in sql server 2005 and fixed by changing the job time of the Reorganize index.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 6:52 PM
Points: 3,582,
Visits: 5,132
|
|
I would say to stop using the maintenance plans for maintenance activities. Use Ola Hallengren's stuff instead. Sooooo much better!
http://ola.hallengren.com/
Best,
Kevin G. Boles SQL Server Consultant SQL MVP 2007-2012 TheSQLGuru at GMail
|
|
|
|