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-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 11:52 AM
Points: 41,530, Visits: 34,446
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: 2 days ago @ 1:55 AM
Points: 911, Visits: 682
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: Monday, December 09, 2013 12:25 AM
Points: 1, Visits: 71
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: Friday, March 14, 2014 2:19 AM
Points: 2,820, Visits: 3,916
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----------
I work only to learn Sql Server...though my company pays me for getting their stuff done
Post #880133
Posted Saturday, March 13, 2010 2:22 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 5:09 PM
Points: 11,168, Visits: 10,932
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
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Yesterday @ 1:27 PM
Points: 603, Visits: 1,286
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
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Yesterday @ 1:27 PM
Points: 603, Visits: 1,286
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


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Yesterday @ 1:45 PM
Points: 4,128, Visits: 5,837
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