Showing posts with label index. Show all posts
Showing posts with label index. Show all posts

Thursday, March 29, 2012

Error: Could not find an entry for table or index with partition ID xxxxxx in database & Ser

Hello! guys

I am using sql server 2005 enterprise edition (x64) with sp1

Periodically, the sql server is crashing. Before crashing i am getting these messages in the error log

1) During undoing of a logged operation in database 'msdb', an error occurred at log record ID (). Typically, the specific failure is logged previously as an error in the Windows Event Log service. Restore the database or file from a backup, or repair the database.

2) Could not find an entry for table or index with partition ID xxxxxx in database 2. This error can occur if a stored procedure references a dropped table, or metadata is corrupted. Drop and re-create the stored procedure, or execute DBCC CHECKDB.

3) Unable to drop worktable with partition ID xxxxx after repeated attempts. Worktable is marked for deferred drop. This is an informational message only. No user action is required.

4) Error occurred while attempting to drop worktable with partition ID xxxxx.

5) SQL Server must shut down in order to recover a database (database ID 1). The database is either a user database that could not be shut down or a system database. Restart SQL Server. If the database fails to recover after another startup, repair or restore the database.

6)The log for database 'msdb' is not available. Check the event log for related error messages. Resolve any errors and restart the database.

Usually i get (2),(3),(4) (5) error message. But last time i also got (1) and (6)
Why msdb database is mentioned in error messages? Whats wrong with msdb dattabase?

Can someone tell me how to fix this issue?

I have seen this hotfix -

http://support.microsoft.com/kb/916086
( FIX: Errors may be generated in the tempdb database when you create and then drop many temporary tables in SQL Server 2005 BUG #: 518 sql )

Should i apply this hotfix? or should apply SP2? I checked SP2 bug list but i dont see anywhere about above bug. Does that mean it is not included in SP2?

Has anyone experienced such an issue? How you have resolved it?

Please any help would be apprecited.

Thanks

Database id:1 is master, :2 is tempdb. msdb database id should be 4.

It's a good thing to apply that hotfix. Also, please post the sql log. It gives us a lot more info than windows event log.

|||
Thanks so much for the reply.

All the above errors are from sql log only. I looked at the event log and it shows the same error messages.

Also that hotfix says-

This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next SQL Server 2005 service pack that contains this hotfix.

So is it safe to apply that hotfix? and if not does sp2 includes this hotfix bug?

Also wondering why the error message showing msdb database?

Thanks

|||

All hotfixes have that disclaimer. Basically, hotfixes are released to customers who truly need the fix before a formal release of a service pack (which they could wait for a long time for).

Sql2k5 sp2 does have this fix included. You can tell by looking at the build number (hotfix: 1533 and sp2: 3042).

The "missing log for msdb" error implies your sqlserver can't get to the log file (*.ldf) which implies a storage problem. Please check system event log for any indication of hardware failure.

sql

Error: Could not find an entry for table or index with partition ID xxxxxx in database & Ser

Hello! guys

I am using sql server 2005 enterprise edition (x64) with sp1

Periodically, the sql server is crashing. Before crashing i am getting these messages in the error log

1) During undoing of a logged operation in database 'msdb', an error occurred at log record ID (). Typically, the specific failure is logged previously as an error in the Windows Event Log service. Restore the database or file from a backup, or repair the database.

2) Could not find an entry for table or index with partition ID xxxxxx in database 2. This error can occur if a stored procedure references a dropped table, or metadata is corrupted. Drop and re-create the stored procedure, or execute DBCC CHECKDB.

3) Unable to drop worktable with partition ID xxxxx after repeated attempts. Worktable is marked for deferred drop. This is an informational message only. No user action is required.

4) Error occurred while attempting to drop worktable with partition ID xxxxx.

5) SQL Server must shut down in order to recover a database (database ID 1). The database is either a user database that could not be shut down or a system database. Restart SQL Server. If the database fails to recover after another startup, repair or restore the database.

6)The log for database 'msdb' is not available. Check the event log for related error messages. Resolve any errors and restart the database.

Usually i get (2),(3),(4) (5) error message. But last time i also got (1) and (6)
Why msdb database is mentioned in error messages? Whats wrong with msdb dattabase?

Can someone tell me how to fix this issue?

I have seen this hotfix -

http://support.microsoft.com/kb/916086
( FIX: Errors may be generated in the tempdb database when you create and then drop many temporary tables in SQL Server 2005 BUG #: 518 sql )

Should i apply this hotfix? or should apply SP2? I checked SP2 bug list but i dont see anywhere about above bug. Does that mean it is not included in SP2?

Has anyone experienced such an issue? How you have resolved it?

Please any help would be apprecited.

Thanks

Database id:1 is master, :2 is tempdb. msdb database id should be 4.

It's a good thing to apply that hotfix. Also, please post the sql log. It gives us a lot more info than windows event log.

|||
Thanks so much for the reply.

All the above errors are from sql log only. I looked at the event log and it shows the same error messages.

Also that hotfix says-

This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next SQL Server 2005 service pack that contains this hotfix.

So is it safe to apply that hotfix? and if not does sp2 includes this hotfix bug?

Also wondering why the error message showing msdb database?

Thanks

|||

All hotfixes have that disclaimer. Basically, hotfixes are released to customers who truly need the fix before a formal release of a service pack (which they could wait for a long time for).

Sql2k5 sp2 does have this fix included. You can tell by looking at the build number (hotfix: 1533 and sp2: 3042).

The "missing log for msdb" error implies your sqlserver can't get to the log file (*.ldf) which implies a storage problem. Please check system event log for any indication of hardware failure.

Monday, March 26, 2012

Error: 644, Severity: 21, State: 3

How do I actually identify the table to which the index that is having the p
roblem applies? The error message detail gives me an "index page (1:427282)
" and an "index ID 0", in addition to the "RID some long binary string". In
order to reindex using DBC
C DBREINDEX, I need to know the table.
Also, this is the second time in a couple of weeks we've had this problem.
We've used DBCC CHECKDB with the rebuild/repair option (which requires the d
atabase be in single-user mode), received an error of similar kind on tempdb
, then used DBCC DBREINDEX
on the table (which we knew by fortuitous circumstance), and that resolved i
t...for about a week-and-a-half. What should we look into as the potential
cause of this recurrence?
Thanks!Not sure your SQL build, but there was an article for updates under Read
Uncommitted isolation with sort and spool operations:
http://support.microsoft.com/defaul...kb;en-us;328736
Christopher Winn
Business Intelligence Engineer
Edugration Corp.
"JohnAtAMCO" <John.Nowak@.AMCO.Net> wrote in message
news:0F42A68E-9F4A-4BCC-BFDB-33FF49079BBD@.microsoft.com...
> How do I actually identify the table to which the index that is having the
problem applies? The error message detail gives me an "index page
(1:427282)" and an "index ID 0", in addition to the "RID some long binary
string". In order to reindex using DBCC DBREINDEX, I need to know the
table.
> Also, this is the second time in a couple of weeks we've had this problem.
We've used DBCC CHECKDB with the rebuild/repair option (which requires the
database be in single-user mode), received an error of similar kind on
tempdb, then used DBCC DBREINDEX on the table (which we knew by fortuitous
circumstance), and that resolved it...for about a week-and-a-half. What
should we look into as the potential cause of this recurrence?
> Thanks!|||Thanks, Chris. I read that article, as well as a couple of others on the 64
4 error. Unfortunately, we don't seem to be doing any of the things mention
ed (such as collating a unicode column with Latin1_General_BIN, or using upp
ercase preference sort orde
r on a column, etc.).
Also, none of them tell me how to translate the Index Page, Index ID, or RID
Binary String into the actual table to which the Index belongs. That's one
of the things I really need to know in order to further troubleshoot and re
solve this problem.
Any suggestions?
Thanks,
John
-- Winn, Chris wrote: --
Not sure your SQL build, but there was an article for updates under Read
Uncommitted isolation with sort and spool operations:
http://support.microsoft.com/defaul...kb;en-us;328736
Christopher Winn
Business Intelligence Engineer
Edugration Corp.
"JohnAtAMCO" <John.Nowak@.AMCO.Net> wrote in message
news:0F42A68E-9F4A-4BCC-BFDB-33FF49079BBD@.microsoft.com...
> How do I actually identify the table to which the index that is having the
problem applies? The error message detail gives me an "index page
(1:427282)" and an "index ID 0", in addition to the "RID some long binary
string". In order to reindex using DBCC DBREINDEX, I need to know the
table.
We've used DBCC CHECKDB with the rebuild/repair option (which requires the
database be in single-user mode), received an error of similar kind on
tempdb, then used DBCC DBREINDEX on the table (which we knew by fortuitous
circumstance), and that resolved it...for about a week-and-a-half. What
should we look into as the potential cause of this recurrence?|||I'd be willing to bet, since you mentioned a similar error against the
tempdb, your server is experiecing hardware faults and you should be
prepared for failure. There is no such Index ID 0 anywhere in MSSQL. That
error shows up in only a few "bug fixes" as mentioned previously.
Chris
"JohnAtAMCO" <anonymous@.discussions.microsoft.com> wrote in message
news:3B57F016-6EA4-4561-B343-BC57DFEF9025@.microsoft.com...
> Thanks, Chris. I read that article, as well as a couple of others on the
644 error. Unfortunately, we don't seem to be doing any of the things
mentioned (such as collating a unicode column with Latin1_General_BIN, or
using uppercase preference sort order on a column, etc.).
> Also, none of them tell me how to translate the Index Page, Index ID, or
RID Binary String into the actual table to which the Index belongs. That's
one of the things I really need to know in order to further troubleshoot and
resolve this problem.
> Any suggestions?
> Thanks,
> John
> -- Winn, Chris wrote: --
> Not sure your SQL build, but there was an article for updates under
Read
> Uncommitted isolation with sort and spool operations:
> http://support.microsoft.com/defaul...kb;en-us;328736
> Christopher Winn
> Business Intelligence Engineer
> Edugration Corp.
> "JohnAtAMCO" <John.Nowak@.AMCO.Net> wrote in message
> news:0F42A68E-9F4A-4BCC-BFDB-33FF49079BBD@.microsoft.com...
having the
> problem applies? The error message detail gives me an "index page
> (1:427282)" and an "index ID 0", in addition to the "RID some long
binary
> string". In order to reindex using DBCC DBREINDEX, I need to know
the
> table.
problem.
> We've used DBCC CHECKDB with the rebuild/repair option (which
requires the
> database be in single-user mode), received an error of similar kind
on
> tempdb, then used DBCC DBREINDEX on the table (which we knew by
fortuitous
> circumstance), and that resolved it...for about a week-and-a-half.
What
> should we look into as the potential cause of this recurrence?
>
>|||Chris,
Too bad you're not the guy responsible for our server hardware He insist
s it can't be hardware, it's all redundantly fault-tolerant, so my earlier s
uggestions to look for a disk failure have not been heard...
Meanwhile, I'm still hoping someone can tell me how to locate the table, giv
en the info in the error message. The MSDN SQL Server Troubleshooting page
that corresponds to this error says:
1. Record the value of index page and index ID...
2. Identify which table and index correspond to the index page number.
...
But nowhere does it tell me how to get from step 1 to step 2! How do I iden
tify the table and index from the index page and index ID?
Thanks again,
John|||AN indid = 0 is a heap table ( no clustered index)..
The DBCC PAGE command will give you the object ID that the page belongs to,
then (in the appropriate db)
select object_name(id) will give you the table name
DBCC page details can be found at
http://support.microsoft.com/defaul...=kb;en-us;83065
Wayne Snyder, MCDBA, SQL Server MVP
Computer Education Services Corporation (CESC), Charlotte, NC
www.computeredservices.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"JohnAtAMCO" <john.nowak@.amco.net> wrote in message
news:BD6079EB-4995-4FE7-90A1-E786D929BEC9@.microsoft.com...
> Chris,
> Too bad you're not the guy responsible for our server hardware He
insists it can't be hardware, it's all redundantly fault-tolerant, so my
earlier suggestions to look for a disk failure have not been heard...
> Meanwhile, I'm still hoping someone can tell me how to locate the table,
given the info in the error message. The MSDN SQL Server Troubleshooting
page that corresponds to this error says:
> 1. Record the value of index page and index ID...
> 2. Identify which table and index correspond to the index page number.
> ...
> But nowhere does it tell me how to get from step 1 to step 2! How do I
identify the table and index from the index page and index ID?
> Thanks again,
> John|||Hi John,
What kind of hardware is this? HP/Compaq? If so, I suggest upgrading
firmware of the controller. It may not be hard disk problem but
controller.
Yih-Yoon Lee
On Tue, 23 Mar 2004 09:36:06 -0800, JohnAtAMCO wrote:

> Chris,
> Too bad you're not the guy responsible for our server hardware He insi
sts it can't be hardware, it's all redundantly fault-tolerant, so my earlier
suggestions to look for a disk failure have not been heard...
> Meanwhile, I'm still hoping someone can tell me how to locate the table, g
iven the info in the error message. The MSDN SQL Server Troubleshooting pag
e that corresponds to this error says:
> 1. Record the value of index page and index ID...
> 2. Identify which table and index correspond to the index page number.
> ...
> But nowhere does it tell me how to get from step 1 to step 2! How do I id
entify the table and index from the index page and index ID?
> Thanks again,
> Johnsql

Error: 644

I get this warning when I do a dbcc checkdb:

Server: Msg 2750, Level 16, State 4, Line 2
Warning: Page (1:300465), Slot 9 in object 2009058193 Index 0 Column Val value -1.#QNAN is out of range for data type "real". Update column to a legal value.

A service using a stored procedure result in the following errir in the event log:

Error 644, Severity: 21, State 5
Could not find the index entry for RID '16ca8880200' in index page (1:31928), index ID 7, database 'BPS'.

I have tried 'dbcc checkdb' and 'dbcc checktable' both with option REPAIR_REBUILD and I have tried 'dbcc reindex' but none of them helped.

Are there other options or can I find the column that shall be updated to a legal value?Did you get any error messages when your ran the DBCC's?

Sounds like a corruption problem to me...

Can you export the data? You may need to do it in ranges...you'll find there will be probably 1 corrupt row...

SELECT * FROM myTable WHERE identity < 1000
and so on...do a binary search..start at the middle your data...

In either Case, you'll either need to do a restore (which hopefully isn't corrupt), or export the data and build a new db...don't know what else could be hosed..

But that's only my own opinion (MOO)|||Have you tried to drop the index and recreate it ?
Have you used the REPAIR_ALLOW_DATA_LOSS option ?

Wednesday, February 15, 2012

Error While Exporting to Excel

Hi Group,
When i tried to export my report to excel it throws me this error
Error: Index was out of range.Must be non-negative and less than the size of
the collection.Parameter name:index.
My Report contains subreport in one column.I Placed my subreport in
rectangle tool
and placed the rectangle in the table cell.
can any only help me how to resolve this error.In excel renderer, subreport and data regions inside table / matrix cells
are not supported.
Anyway, you should be able to render the report with a nice error message in
place of subreport. Could you send us the report, please?
--
Nico Cristache [MSFT]
Microsoft SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Manoj.Pasumarthi" <ManojPasumarthi@.discussions.microsoft.com> wrote in
message news:186AE246-FF9A-4C8D-A86E-D7430F572BD9@.microsoft.com...
> Hi Group,
> When i tried to export my report to excel it throws me this error
> Error: Index was out of range.Must be non-negative and less than the size
of
> the collection.Parameter name:index.
> My Report contains subreport in one column.I Placed my subreport in
> rectangle tool
> and placed the rectangle in the table cell.
> can any only help me how to resolve this error.|||Hi Cristache,
In my Previous Discussion with CHRIS HAYS he Said
Subreports are not currently supported inside tables/matrixes in the Excel
renderer.
You could either convert your table to nested lists (this approach won't
work for matrix) or you could place the contents of your subreport into a
rectangle in the table/matrix cell. Note: This second approach involves
rewriting your query to join the main query data with the subreport query
data.
Now My Problem is I am not able to render the report to xls.But i have
another report with same concept and able to render to xls and values are
displaing in subreport column.But the other report what i was taking is
giving this error
Error: Index was out of range.Must be non-negative and less than the size of
the collection.Parameter name:index. And report is not rendering.
So how do i send the report to you.
"Nico Cristache [MSFT]" wrote:
> In excel renderer, subreport and data regions inside table / matrix cells
> are not supported.
> Anyway, you should be able to render the report with a nice error message in
> place of subreport. Could you send us the report, please?
> --
> Nico Cristache [MSFT]
> Microsoft SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Manoj.Pasumarthi" <ManojPasumarthi@.discussions.microsoft.com> wrote in
> message news:186AE246-FF9A-4C8D-A86E-D7430F572BD9@.microsoft.com...
> > Hi Group,
> >
> > When i tried to export my report to excel it throws me this error
> > Error: Index was out of range.Must be non-negative and less than the size
> of
> > the collection.Parameter name:index.
> >
> > My Report contains subreport in one column.I Placed my subreport in
> > rectangle tool
> > and placed the rectangle in the table cell.
> >
> > can any only help me how to resolve this error.
>
>|||I have the same error message
In my report I use 9 tables
all the rendering goes ok, but when I export it to excell I get the message
"Nico Cristache [MSFT]" wrote:
> In excel renderer, subreport and data regions inside table / matrix cells
> are not supported.
> Anyway, you should be able to render the report with a nice error message in
> place of subreport. Could you send us the report, please?
> --
> Nico Cristache [MSFT]
> Microsoft SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Manoj.Pasumarthi" <ManojPasumarthi@.discussions.microsoft.com> wrote in
> message news:186AE246-FF9A-4C8D-A86E-D7430F572BD9@.microsoft.com...
> > Hi Group,
> >
> > When i tried to export my report to excel it throws me this error
> > Error: Index was out of range.Must be non-negative and less than the size
> of
> > the collection.Parameter name:index.
> >
> > My Report contains subreport in one column.I Placed my subreport in
> > rectangle tool
> > and placed the rectangle in the table cell.
> >
> > can any only help me how to resolve this error.
>
>