Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Reorganize Index Task Expand / Collapse
Author
Message
Posted Monday, January 12, 2009 4:31 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #635117
Posted Monday, January 12, 2009 11:55 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-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

Post #635164
Posted Tuesday, January 13, 2009 12:10 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!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
Post #635167
Posted Wednesday, October 14, 2009 7:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, May 24, 2012 2:07 AM
Points: 1, Visits: 70
We have the same Problem. Take a look here http://www.eggheadcafe.com/software/aspnet/30972265/optimization--index-prob.aspx

I removed the OperationsManagerDW from Indexing.
Post #802716
Posted Monday, March 08, 2010 12:59 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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?
Post #878866
Posted Wednesday, March 10, 2010 6:22 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

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
Post #880133
Posted Saturday, March 13, 2010 2:22 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

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
Post #882319
Posted Sunday, June 06, 2010 4:20 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr 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.
Post #933209
Posted Sunday, June 13, 2010 12:21 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr 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.


Post #936488
Posted Monday, June 14, 2010 8:16 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall 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
Post #936866
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse