Showing posts with label returned. Show all posts
Showing posts with label returned. Show all posts

Tuesday, March 27, 2012

DBCC Shrinkdatabase errors

When DBCC ShrinkDatabase ('db-name') is run; the following error is returned.

File ID 1 of database ID 5 cannot be shrunk as it is either being shrunk by another process or is empty.

File ID 3 of database ID 5 cannot be shrunk as it is either being shrunk by another process or is empty.

Cannot shrink log file 2 (logmentusnet) because all logical log files are in use.

The files 1-3 are not empty so I'm assuming that another shrink is already running.

Questions:

1. If I restart the database will the errent database shrink stop?

2. How can I find and stop the errent database shrink process?

3. What's going on, and how can I recover the empty space in the database?

Hi

I am also facing the same issue.

Any workaround for this.

Regards

kokila

|||

Hy,

I am with the same problem… somebody can help?

File ID 9 of database ID 6 cannot be shrunk as it is either being shrunk by another process or is empty.

Sunday, March 25, 2012

DBCC SHOWCONTIG shows no result

Hello
Trying to get some fragmentation info back on SQL2000 tables but no results
are returned. Is this a bug?
DBCC SHOWCONTIG ('dbo.[MsgAudit_CBOT]') WITH FAST, TABLERESULTS,
ALL_INDEXES, NO_INFOMSGS
DBCC SHOWCONTIG ('MsgAudit_CBOT')
DBCC SHOWCONTIG ('dbo.MsgAudit_CBOT')
-- all above tables exist and have clustered index with millions of rows.
tks
all queries produce no result:
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
--
-- cranfield, DBAAre you certain you really execute the queries? Press the "execute" button? Also, can you try using
OSQL.EXE? That DBCC should give you an error message if the table doesn't exist.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Cranfield" <alan_cranfield@.msn.co.za> wrote in message
news:A7E3358D-4814-49C6-9E48-451F6CB20EA1@.microsoft.com...
> Hello
> Trying to get some fragmentation info back on SQL2000 tables but no results
> are returned. Is this a bug?
> DBCC SHOWCONTIG ('dbo.[MsgAudit_CBOT]') WITH FAST, TABLERESULTS,
> ALL_INDEXES, NO_INFOMSGS
> DBCC SHOWCONTIG ('MsgAudit_CBOT')
> DBCC SHOWCONTIG ('dbo.MsgAudit_CBOT')
> -- all above tables exist and have clustered index with millions of rows.
> tks
>
> all queries produce no result:
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> --
> -- cranfield, DBA|||I am certain query is executed. Have also tried osql - still no results, just
as below. My SQL2005 table returns results but NOT SQL2000
1> use eqmclog
2> go
1> dbcc showcontig('providersourceinfo')
2> go
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
1>
very strange this...
--
-- cranfield, DBA
"Tibor Karaszi" wrote:
> Are you certain you really execute the queries? Press the "execute" button? Also, can you try using
> OSQL.EXE? That DBCC should give you an error message if the table doesn't exist.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
> news:A7E3358D-4814-49C6-9E48-451F6CB20EA1@.microsoft.com...
> > Hello
> >
> > Trying to get some fragmentation info back on SQL2000 tables but no results
> > are returned. Is this a bug?
> >
> > DBCC SHOWCONTIG ('dbo.[MsgAudit_CBOT]') WITH FAST, TABLERESULTS,
> > ALL_INDEXES, NO_INFOMSGS
> >
> > DBCC SHOWCONTIG ('MsgAudit_CBOT')
> >
> > DBCC SHOWCONTIG ('dbo.MsgAudit_CBOT')
> >
> > -- all above tables exist and have clustered index with millions of rows.
> >
> > tks
> >
> >
> > all queries produce no result:
> >
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> >
> >
> >
> > --
> > -- cranfield, DBA
>|||What happens if you omit the single quotes? As in DBCC SHOWCONTIG
(MsgAudit_CBOT)? Looking at the syntax for DBCC statements in SQL Server
2000 BOL, it does not indicate the use of single quotes around the object
name, but does in the SQL Server 2005 topics.
--
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no rights
Download the latest version of Books Online from
http://technet.microsoft.com/en-us/sqlserver/bb428874.aspx
"Cranfield" <alan_cranfield@.msn.co.za> wrote in message
news:2FAEA2D1-46ED-4248-BB68-8C0B62B90E52@.microsoft.com...
>I am certain query is executed. Have also tried osql - still no results,
>just
> as below. My SQL2005 table returns results but NOT SQL2000
> 1> use eqmclog
> 2> go
> 1> dbcc showcontig('providersourceinfo')
> 2> go
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> 1>
> very strange this...
> --
> -- cranfield, DBA
>
> "Tibor Karaszi" wrote:
>> Are you certain you really execute the queries? Press the "execute"
>> button? Also, can you try using
>> OSQL.EXE? That DBCC should give you an error message if the table doesn't
>> exist.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
>> news:A7E3358D-4814-49C6-9E48-451F6CB20EA1@.microsoft.com...
>> > Hello
>> >
>> > Trying to get some fragmentation info back on SQL2000 tables but no
>> > results
>> > are returned. Is this a bug?
>> >
>> > DBCC SHOWCONTIG ('dbo.[MsgAudit_CBOT]') WITH FAST, TABLERESULTS,
>> > ALL_INDEXES, NO_INFOMSGS
>> >
>> > DBCC SHOWCONTIG ('MsgAudit_CBOT')
>> >
>> > DBCC SHOWCONTIG ('dbo.MsgAudit_CBOT')
>> >
>> > -- all above tables exist and have clustered index with millions of
>> > rows.
>> >
>> > tks
>> >
>> >
>> > all queries produce no result:
>> >
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> >
>> >
>> >
>> > --
>> > -- cranfield, DBA|||no, omitting quotes makes no difference. MS uses quotes themselves in their
BOL samples.
Just to make sure I have the correct tables:
select 'DBCC SHOWCONTIG ('+name+')'
from sysobjects
where type = 'u'
DBCC SHOWCONTIG (DataRecoveryLog)
DBCC SHOWCONTIG (ProviderSourceInfo)
DBCC SHOWCONTIG (MsgAudit_CBOT)
DBCC SHOWCONTIG (MsgAudit_KCBT)
DBCC SHOWCONTIG (MsgAudit_MGEX)
DBCC SHOWCONTIG (MsgAudit_WCE)
DBCC SHOWCONTIG (MsgAudit_JADE)
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
-- cranfield, DBA
"Gail Erickson [MS]" wrote:
> What happens if you omit the single quotes? As in DBCC SHOWCONTIG
> (MsgAudit_CBOT)? Looking at the syntax for DBCC statements in SQL Server
> 2000 BOL, it does not indicate the use of single quotes around the object
> name, but does in the SQL Server 2005 topics.
> --
> Gail Erickson [MS]
> SQL Server Documentation Team
> This posting is provided "AS IS" with no warranties, and confers no rights
> Download the latest version of Books Online from
> http://technet.microsoft.com/en-us/sqlserver/bb428874.aspx
> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
> news:2FAEA2D1-46ED-4248-BB68-8C0B62B90E52@.microsoft.com...
> >I am certain query is executed. Have also tried osql - still no results,
> >just
> > as below. My SQL2005 table returns results but NOT SQL2000
> >
> > 1> use eqmclog
> > 2> go
> > 1> dbcc showcontig('providersourceinfo')
> > 2> go
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> > 1>
> >
> > very strange this...
> > --
> > -- cranfield, DBA
> >
> >
> > "Tibor Karaszi" wrote:
> >
> >> Are you certain you really execute the queries? Press the "execute"
> >> button? Also, can you try using
> >> OSQL.EXE? That DBCC should give you an error message if the table doesn't
> >> exist.
> >>
> >> --
> >> Tibor Karaszi, SQL Server MVP
> >> http://www.karaszi.com/sqlserver/default.asp
> >> http://sqlblog.com/blogs/tibor_karaszi
> >>
> >>
> >> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
> >> news:A7E3358D-4814-49C6-9E48-451F6CB20EA1@.microsoft.com...
> >> > Hello
> >> >
> >> > Trying to get some fragmentation info back on SQL2000 tables but no
> >> > results
> >> > are returned. Is this a bug?
> >> >
> >> > DBCC SHOWCONTIG ('dbo.[MsgAudit_CBOT]') WITH FAST, TABLERESULTS,
> >> > ALL_INDEXES, NO_INFOMSGS
> >> >
> >> > DBCC SHOWCONTIG ('MsgAudit_CBOT')
> >> >
> >> > DBCC SHOWCONTIG ('dbo.MsgAudit_CBOT')
> >> >
> >> > -- all above tables exist and have clustered index with millions of
> >> > rows.
> >> >
> >> > tks
> >> >
> >> >
> >> > all queries produce no result:
> >> >
> >> > DBCC execution completed. If DBCC printed error messages, contact your
> >> > system administrator.
> >> >
> >> >
> >> >
> >> > --
> >> > -- cranfield, DBA
> >>
>
>|||Can you run it in the pubs database? I ran your SELECT (which produces the DBCC commands) in pubs
against a SQL2K (8.00.194), and it produced results. Also, be careful to note that without
TABLERESULTS, you get text back (use the correct tab in QA results).
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Cranfield" <alan_cranfield@.msn.co.za> wrote in message
news:97BDC55E-5F6E-4025-B576-0441777497DB@.microsoft.com...
> no, omitting quotes makes no difference. MS uses quotes themselves in their
> BOL samples.
> Just to make sure I have the correct tables:
> select 'DBCC SHOWCONTIG ('+name+')'
> from sysobjects
> where type = 'u'
> DBCC SHOWCONTIG (DataRecoveryLog)
> DBCC SHOWCONTIG (ProviderSourceInfo)
> DBCC SHOWCONTIG (MsgAudit_CBOT)
> DBCC SHOWCONTIG (MsgAudit_KCBT)
> DBCC SHOWCONTIG (MsgAudit_MGEX)
> DBCC SHOWCONTIG (MsgAudit_WCE)
> DBCC SHOWCONTIG (MsgAudit_JADE)
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> --
> -- cranfield, DBA
>
> "Gail Erickson [MS]" wrote:
>> What happens if you omit the single quotes? As in DBCC SHOWCONTIG
>> (MsgAudit_CBOT)? Looking at the syntax for DBCC statements in SQL Server
>> 2000 BOL, it does not indicate the use of single quotes around the object
>> name, but does in the SQL Server 2005 topics.
>> --
>> Gail Erickson [MS]
>> SQL Server Documentation Team
>> This posting is provided "AS IS" with no warranties, and confers no rights
>> Download the latest version of Books Online from
>> http://technet.microsoft.com/en-us/sqlserver/bb428874.aspx
>> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
>> news:2FAEA2D1-46ED-4248-BB68-8C0B62B90E52@.microsoft.com...
>> >I am certain query is executed. Have also tried osql - still no results,
>> >just
>> > as below. My SQL2005 table returns results but NOT SQL2000
>> >
>> > 1> use eqmclog
>> > 2> go
>> > 1> dbcc showcontig('providersourceinfo')
>> > 2> go
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> > 1>
>> >
>> > very strange this...
>> > --
>> > -- cranfield, DBA
>> >
>> >
>> > "Tibor Karaszi" wrote:
>> >
>> >> Are you certain you really execute the queries? Press the "execute"
>> >> button? Also, can you try using
>> >> OSQL.EXE? That DBCC should give you an error message if the table doesn't
>> >> exist.
>> >>
>> >> --
>> >> Tibor Karaszi, SQL Server MVP
>> >> http://www.karaszi.com/sqlserver/default.asp
>> >> http://sqlblog.com/blogs/tibor_karaszi
>> >>
>> >>
>> >> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
>> >> news:A7E3358D-4814-49C6-9E48-451F6CB20EA1@.microsoft.com...
>> >> > Hello
>> >> >
>> >> > Trying to get some fragmentation info back on SQL2000 tables but no
>> >> > results
>> >> > are returned. Is this a bug?
>> >> >
>> >> > DBCC SHOWCONTIG ('dbo.[MsgAudit_CBOT]') WITH FAST, TABLERESULTS,
>> >> > ALL_INDEXES, NO_INFOMSGS
>> >> >
>> >> > DBCC SHOWCONTIG ('MsgAudit_CBOT')
>> >> >
>> >> > DBCC SHOWCONTIG ('dbo.MsgAudit_CBOT')
>> >> >
>> >> > -- all above tables exist and have clustered index with millions of
>> >> > rows.
>> >> >
>> >> > tks
>> >> >
>> >> >
>> >> > all queries produce no result:
>> >> >
>> >> > DBCC execution completed. If DBCC printed error messages, contact your
>> >> > system administrator.
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > -- cranfield, DBA
>> >>
>>|||Hi Tibor
I have found the problem! These tables have 0 rows. DBCC SHOWCONTIG does
not return results for empty tables.
doh!
--
-- cranfield, DBA
"Tibor Karaszi" wrote:
> Can you run it in the pubs database? I ran your SELECT (which produces the DBCC commands) in pubs
> against a SQL2K (8.00.194), and it produced results. Also, be careful to note that without
> TABLERESULTS, you get text back (use the correct tab in QA results).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
> news:97BDC55E-5F6E-4025-B576-0441777497DB@.microsoft.com...
> > no, omitting quotes makes no difference. MS uses quotes themselves in their
> > BOL samples.
> >
> > Just to make sure I have the correct tables:
> >
> > select 'DBCC SHOWCONTIG ('+name+')'
> > from sysobjects
> > where type = 'u'
> >
> > DBCC SHOWCONTIG (DataRecoveryLog)
> > DBCC SHOWCONTIG (ProviderSourceInfo)
> > DBCC SHOWCONTIG (MsgAudit_CBOT)
> > DBCC SHOWCONTIG (MsgAudit_KCBT)
> > DBCC SHOWCONTIG (MsgAudit_MGEX)
> > DBCC SHOWCONTIG (MsgAudit_WCE)
> > DBCC SHOWCONTIG (MsgAudit_JADE)
> >
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> > DBCC execution completed. If DBCC printed error messages, contact your
> > system administrator.
> >
> >
> >
> > --
> > -- cranfield, DBA
> >
> >
> > "Gail Erickson [MS]" wrote:
> >
> >> What happens if you omit the single quotes? As in DBCC SHOWCONTIG
> >> (MsgAudit_CBOT)? Looking at the syntax for DBCC statements in SQL Server
> >> 2000 BOL, it does not indicate the use of single quotes around the object
> >> name, but does in the SQL Server 2005 topics.
> >>
> >> --
> >> Gail Erickson [MS]
> >> SQL Server Documentation Team
> >> This posting is provided "AS IS" with no warranties, and confers no rights
> >> Download the latest version of Books Online from
> >> http://technet.microsoft.com/en-us/sqlserver/bb428874.aspx
> >>
> >> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
> >> news:2FAEA2D1-46ED-4248-BB68-8C0B62B90E52@.microsoft.com...
> >> >I am certain query is executed. Have also tried osql - still no results,
> >> >just
> >> > as below. My SQL2005 table returns results but NOT SQL2000
> >> >
> >> > 1> use eqmclog
> >> > 2> go
> >> > 1> dbcc showcontig('providersourceinfo')
> >> > 2> go
> >> > DBCC execution completed. If DBCC printed error messages, contact your
> >> > system administrator.
> >> > 1>
> >> >
> >> > very strange this...
> >> > --
> >> > -- cranfield, DBA
> >> >
> >> >
> >> > "Tibor Karaszi" wrote:
> >> >
> >> >> Are you certain you really execute the queries? Press the "execute"
> >> >> button? Also, can you try using
> >> >> OSQL.EXE? That DBCC should give you an error message if the table doesn't
> >> >> exist.
> >> >>
> >> >> --
> >> >> Tibor Karaszi, SQL Server MVP
> >> >> http://www.karaszi.com/sqlserver/default.asp
> >> >> http://sqlblog.com/blogs/tibor_karaszi
> >> >>
> >> >>
> >> >> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
> >> >> news:A7E3358D-4814-49C6-9E48-451F6CB20EA1@.microsoft.com...
> >> >> > Hello
> >> >> >
> >> >> > Trying to get some fragmentation info back on SQL2000 tables but no
> >> >> > results
> >> >> > are returned. Is this a bug?
> >> >> >
> >> >> > DBCC SHOWCONTIG ('dbo.[MsgAudit_CBOT]') WITH FAST, TABLERESULTS,
> >> >> > ALL_INDEXES, NO_INFOMSGS
> >> >> >
> >> >> > DBCC SHOWCONTIG ('MsgAudit_CBOT')
> >> >> >
> >> >> > DBCC SHOWCONTIG ('dbo.MsgAudit_CBOT')
> >> >> >
> >> >> > -- all above tables exist and have clustered index with millions of
> >> >> > rows.
> >> >> >
> >> >> > tks
> >> >> >
> >> >> >
> >> >> > all queries produce no result:
> >> >> >
> >> >> > DBCC execution completed. If DBCC printed error messages, contact your
> >> >> > system administrator.
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > -- cranfield, DBA
> >> >>
> >>
> >>
> >>
>|||Ouch... That was not obvious! Thanks for posting back. :-)
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Cranfield" <alan_cranfield@.msn.co.za> wrote in message
news:FF387413-A310-4994-8A65-B118987CBF42@.microsoft.com...
> Hi Tibor
> I have found the problem! These tables have 0 rows. DBCC SHOWCONTIG does
> not return results for empty tables.
> doh!
> --
> -- cranfield, DBA
>
> "Tibor Karaszi" wrote:
>> Can you run it in the pubs database? I ran your SELECT (which produces the DBCC commands) in pubs
>> against a SQL2K (8.00.194), and it produced results. Also, be careful to note that without
>> TABLERESULTS, you get text back (use the correct tab in QA results).
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
>> news:97BDC55E-5F6E-4025-B576-0441777497DB@.microsoft.com...
>> > no, omitting quotes makes no difference. MS uses quotes themselves in their
>> > BOL samples.
>> >
>> > Just to make sure I have the correct tables:
>> >
>> > select 'DBCC SHOWCONTIG ('+name+')'
>> > from sysobjects
>> > where type = 'u'
>> >
>> > DBCC SHOWCONTIG (DataRecoveryLog)
>> > DBCC SHOWCONTIG (ProviderSourceInfo)
>> > DBCC SHOWCONTIG (MsgAudit_CBOT)
>> > DBCC SHOWCONTIG (MsgAudit_KCBT)
>> > DBCC SHOWCONTIG (MsgAudit_MGEX)
>> > DBCC SHOWCONTIG (MsgAudit_WCE)
>> > DBCC SHOWCONTIG (MsgAudit_JADE)
>> >
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> > DBCC execution completed. If DBCC printed error messages, contact your
>> > system administrator.
>> >
>> >
>> >
>> > --
>> > -- cranfield, DBA
>> >
>> >
>> > "Gail Erickson [MS]" wrote:
>> >
>> >> What happens if you omit the single quotes? As in DBCC SHOWCONTIG
>> >> (MsgAudit_CBOT)? Looking at the syntax for DBCC statements in SQL Server
>> >> 2000 BOL, it does not indicate the use of single quotes around the object
>> >> name, but does in the SQL Server 2005 topics.
>> >>
>> >> --
>> >> Gail Erickson [MS]
>> >> SQL Server Documentation Team
>> >> This posting is provided "AS IS" with no warranties, and confers no rights
>> >> Download the latest version of Books Online from
>> >> http://technet.microsoft.com/en-us/sqlserver/bb428874.aspx
>> >>
>> >> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
>> >> news:2FAEA2D1-46ED-4248-BB68-8C0B62B90E52@.microsoft.com...
>> >> >I am certain query is executed. Have also tried osql - still no results,
>> >> >just
>> >> > as below. My SQL2005 table returns results but NOT SQL2000
>> >> >
>> >> > 1> use eqmclog
>> >> > 2> go
>> >> > 1> dbcc showcontig('providersourceinfo')
>> >> > 2> go
>> >> > DBCC execution completed. If DBCC printed error messages, contact your
>> >> > system administrator.
>> >> > 1>
>> >> >
>> >> > very strange this...
>> >> > --
>> >> > -- cranfield, DBA
>> >> >
>> >> >
>> >> > "Tibor Karaszi" wrote:
>> >> >
>> >> >> Are you certain you really execute the queries? Press the "execute"
>> >> >> button? Also, can you try using
>> >> >> OSQL.EXE? That DBCC should give you an error message if the table doesn't
>> >> >> exist.
>> >> >>
>> >> >> --
>> >> >> Tibor Karaszi, SQL Server MVP
>> >> >> http://www.karaszi.com/sqlserver/default.asp
>> >> >> http://sqlblog.com/blogs/tibor_karaszi
>> >> >>
>> >> >>
>> >> >> "Cranfield" <alan_cranfield@.msn.co.za> wrote in message
>> >> >> news:A7E3358D-4814-49C6-9E48-451F6CB20EA1@.microsoft.com...
>> >> >> > Hello
>> >> >> >
>> >> >> > Trying to get some fragmentation info back on SQL2000 tables but no
>> >> >> > results
>> >> >> > are returned. Is this a bug?
>> >> >> >
>> >> >> > DBCC SHOWCONTIG ('dbo.[MsgAudit_CBOT]') WITH FAST, TABLERESULTS,
>> >> >> > ALL_INDEXES, NO_INFOMSGS
>> >> >> >
>> >> >> > DBCC SHOWCONTIG ('MsgAudit_CBOT')
>> >> >> >
>> >> >> > DBCC SHOWCONTIG ('dbo.MsgAudit_CBOT')
>> >> >> >
>> >> >> > -- all above tables exist and have clustered index with millions of
>> >> >> > rows.
>> >> >> >
>> >> >> > tks
>> >> >> >
>> >> >> >
>> >> >> > all queries produce no result:
>> >> >> >
>> >> >> > DBCC execution completed. If DBCC printed error messages, contact your
>> >> >> > system administrator.
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > -- cranfield, DBA
>> >> >>
>> >>
>> >>
>> >>

Wednesday, March 21, 2012

DBCC Question

We are trying to do some automated weekly optimization processes on a SQL
2000 Server and have had some errors returned when we do a DBCC CheckDB.
I've posted those below. We then tried DBCC CHECKDB repair_allow_data_loss
which returns a message that says that it found 9 errors and repaired 0.
Can anyone help me determine what kind of errors these are and how they
might be fixed?
Server: Msg 8929, Level 16, State 1, Line 1
Object ID 2: Errors found in text ID 231654031360 owned by data record
identified by RID = (1:2026:23) id = 194502355 and indid = 3.
Server: Msg 8929, Level 16, State 1, Line 1
Object ID 2: Errors found in text ID 234646667264 owned by data record
identified by RID = (1:2026:24) id = 194502355 and indid = 4.
Server: Msg 8929, Level 16, State 1, Line 1
Object ID 2: Errors found in text ID 246486007808 owned by data record
identified by RID = (1:2028:23) id = 469576711 and indid = 7.
Server: Msg 8929, Level 16, State 1, Line 1
Object ID 2: Errors found in text ID 246504488960 owned by data record
identified by RID = (1:7431:20) id = 805577908 and indid = 30.
Server: Msg 8961, Level 16, State 1, Line 1
Table error: Object ID 2. The text, ntext, or image node at page (1:14296),
slot 3, text ID 246486007808 does not match its reference from page
(1:8421), slot 2.
Server: Msg 8974, Level 16, State 1, Line 1
Text node referenced by more than one node. Object ID 2, text, ntext, or
image node page (1:14296), slot 3, text ID 246486007808 is pointed to by
page (1:2028), slot 23 and by page (1:8421), slot 2.
Server: Msg 8964, Level 16, State 1, Line 1
Table error: Object ID 2. The text, ntext, or image node at page (1:14378),
slot 1, text ID 234646863872 is not referenced.
Server: Msg 8961, Level 16, State 1, Line 1
Table error: Object ID 2. The text, ntext, or image node at page (1:22060),
slot 4, text ID 246504488960 does not match its reference from page
(1:2531), slot 5.
Server: Msg 8974, Level 16, State 1, Line 1
Text node referenced by more than one node. Object ID 2, text, ntext, or
image node page (1:22060), slot 4, text ID 246504488960 is pointed to by
page (1:2531), slot 5 and by page (1:7431), slot 20.
DBCC results for 'sunrise'.
DBCC results for 'sysobjects'.
There are 24482 rows in 435 pages for object 'sysobjects'.
DBCC results for 'sysindexes'.
There are 2652 rows in 155 pages for object 'sysindexes'.
CHECKDB found 0 allocation errors and 9 consistency errors in table
'sysindexes' (object ID 2).At a guess, if sql server is unable to repair the database (even with data
loss,
if that is acceptable to you), you will need to restore from your latest
backup.
Verify this before taking any action though
"Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com> wrote
in message news:eBh7qp9lDHA.2732@.TK2MSFTNGP11.phx.gbl...
> We are trying to do some automated weekly optimization processes on a SQL
> 2000 Server and have had some errors returned when we do a DBCC CheckDB.
> I've posted those below. We then tried DBCC CHECKDB
repair_allow_data_loss
> which returns a message that says that it found 9 errors and repaired 0.
> Can anyone help me determine what kind of errors these are and how they
> might be fixed?
> Server: Msg 8929, Level 16, State 1, Line 1
> Object ID 2: Errors found in text ID 231654031360 owned by data record
> identified by RID = (1:2026:23) id = 194502355 and indid = 3.
> Server: Msg 8929, Level 16, State 1, Line 1
> Object ID 2: Errors found in text ID 234646667264 owned by data record
> identified by RID = (1:2026:24) id = 194502355 and indid = 4.
> Server: Msg 8929, Level 16, State 1, Line 1
> Object ID 2: Errors found in text ID 246486007808 owned by data record
> identified by RID = (1:2028:23) id = 469576711 and indid = 7.
> Server: Msg 8929, Level 16, State 1, Line 1
> Object ID 2: Errors found in text ID 246504488960 owned by data record
> identified by RID = (1:7431:20) id = 805577908 and indid = 30.
> Server: Msg 8961, Level 16, State 1, Line 1
> Table error: Object ID 2. The text, ntext, or image node at page
(1:14296),
> slot 3, text ID 246486007808 does not match its reference from page
> (1:8421), slot 2.
> Server: Msg 8974, Level 16, State 1, Line 1
> Text node referenced by more than one node. Object ID 2, text, ntext, or
> image node page (1:14296), slot 3, text ID 246486007808 is pointed to by
> page (1:2028), slot 23 and by page (1:8421), slot 2.
> Server: Msg 8964, Level 16, State 1, Line 1
> Table error: Object ID 2. The text, ntext, or image node at page
(1:14378),
> slot 1, text ID 234646863872 is not referenced.
> Server: Msg 8961, Level 16, State 1, Line 1
> Table error: Object ID 2. The text, ntext, or image node at page
(1:22060),
> slot 4, text ID 246504488960 does not match its reference from page
> (1:2531), slot 5.
> Server: Msg 8974, Level 16, State 1, Line 1
> Text node referenced by more than one node. Object ID 2, text, ntext, or
> image node page (1:22060), slot 4, text ID 246504488960 is pointed to by
> page (1:2531), slot 5 and by page (1:7431), slot 20.
> DBCC results for 'sunrise'.
> DBCC results for 'sysobjects'.
> There are 24482 rows in 435 pages for object 'sysobjects'.
> DBCC results for 'sysindexes'.
> There are 2652 rows in 155 pages for object 'sysindexes'.
> CHECKDB found 0 allocation errors and 9 consistency errors in table
> 'sysindexes' (object ID 2).
>|||The latest backup was made after these messages were created. Wouldn't
these errors still exist after restoring?
"Stressed" <k@.c.co.uk> wrote in message
news:Odykkb%23lDHA.988@.TK2MSFTNGP10.phx.gbl...
> At a guess, if sql server is unable to repair the database (even with data
> loss,
> if that is acceptable to you), you will need to restore from your latest
> backup.
> Verify this before taking any action though
>
> "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com> wrote
> in message news:eBh7qp9lDHA.2732@.TK2MSFTNGP11.phx.gbl...
> > We are trying to do some automated weekly optimization processes on a
SQL
> > 2000 Server and have had some errors returned when we do a DBCC CheckDB.
> > I've posted those below. We then tried DBCC CHECKDB
> repair_allow_data_loss
> > which returns a message that says that it found 9 errors and repaired 0.
> >
> > Can anyone help me determine what kind of errors these are and how they
> > might be fixed?
> >
> > Server: Msg 8929, Level 16, State 1, Line 1
> >
> > Object ID 2: Errors found in text ID 231654031360 owned by data record
> > identified by RID = (1:2026:23) id = 194502355 and indid = 3.
> >
> > Server: Msg 8929, Level 16, State 1, Line 1
> >
> > Object ID 2: Errors found in text ID 234646667264 owned by data record
> > identified by RID = (1:2026:24) id = 194502355 and indid = 4.
> >
> > Server: Msg 8929, Level 16, State 1, Line 1
> >
> > Object ID 2: Errors found in text ID 246486007808 owned by data record
> > identified by RID = (1:2028:23) id = 469576711 and indid = 7.
> >
> > Server: Msg 8929, Level 16, State 1, Line 1
> >
> > Object ID 2: Errors found in text ID 246504488960 owned by data record
> > identified by RID = (1:7431:20) id = 805577908 and indid = 30.
> >
> > Server: Msg 8961, Level 16, State 1, Line 1
> >
> > Table error: Object ID 2. The text, ntext, or image node at page
> (1:14296),
> > slot 3, text ID 246486007808 does not match its reference from page
> > (1:8421), slot 2.
> >
> > Server: Msg 8974, Level 16, State 1, Line 1
> >
> > Text node referenced by more than one node. Object ID 2, text, ntext, or
> > image node page (1:14296), slot 3, text ID 246486007808 is pointed to by
> > page (1:2028), slot 23 and by page (1:8421), slot 2.
> >
> > Server: Msg 8964, Level 16, State 1, Line 1
> >
> > Table error: Object ID 2. The text, ntext, or image node at page
> (1:14378),
> > slot 1, text ID 234646863872 is not referenced.
> >
> > Server: Msg 8961, Level 16, State 1, Line 1
> >
> > Table error: Object ID 2. The text, ntext, or image node at page
> (1:22060),
> > slot 4, text ID 246504488960 does not match its reference from page
> > (1:2531), slot 5.
> >
> > Server: Msg 8974, Level 16, State 1, Line 1
> >
> > Text node referenced by more than one node. Object ID 2, text, ntext, or
> > image node page (1:22060), slot 4, text ID 246504488960 is pointed to by
> > page (1:2531), slot 5 and by page (1:7431), slot 20.
> >
> > DBCC results for 'sunrise'.
> >
> > DBCC results for 'sysobjects'.
> >
> > There are 24482 rows in 435 pages for object 'sysobjects'.
> >
> > DBCC results for 'sysindexes'.
> >
> > There are 2652 rows in 155 pages for object 'sysindexes'.
> >
> > CHECKDB found 0 allocation errors and 9 consistency errors in table
> > 'sysindexes' (object ID 2).
> >
> >
>|||This database has over 900 tables. Is there any way to know which table's
indexes are the problem? Or to rebuild all of the indexes in the database?
"harvinder" <hs@.metratech.com> wrote in message
news:0c6301c397eb$fcfeeda0$a501280a@.phx.gbl...
> most of the appear to belong to index...so better way
> will be to recreate the corrupted indexes and run dbcc
> checkdb again
> Thanks
> --Harvinder
> >--Original Message--
> >We are trying to do some automated weekly optimization
> processes on a SQL
> >2000 Server and have had some errors returned when we do
> a DBCC CheckDB.
> >I've posted those below. We then tried DBCC CHECKDB
> repair_allow_data_loss
> >which returns a message that says that it found 9 errors
> and repaired 0.
> >
> >Can anyone help me determine what kind of errors these
> are and how they
> >might be fixed?
> >
> >Server: Msg 8929, Level 16, State 1, Line 1
> >
> >Object ID 2: Errors found in text ID 231654031360 owned
> by data record
> >identified by RID = (1:2026:23) id = 194502355 and indid
> = 3.
> >
> >Server: Msg 8929, Level 16, State 1, Line 1
> >
> >Object ID 2: Errors found in text ID 234646667264 owned
> by data record
> >identified by RID = (1:2026:24) id = 194502355 and indid
> = 4.
> >
> >Server: Msg 8929, Level 16, State 1, Line 1
> >
> >Object ID 2: Errors found in text ID 246486007808 owned
> by data record
> >identified by RID = (1:2028:23) id = 469576711 and indid
> = 7.
> >
> >Server: Msg 8929, Level 16, State 1, Line 1
> >
> >Object ID 2: Errors found in text ID 246504488960 owned
> by data record
> >identified by RID = (1:7431:20) id = 805577908 and indid
> = 30.
> >
> >Server: Msg 8961, Level 16, State 1, Line 1
> >
> >Table error: Object ID 2. The text, ntext, or image node
> at page (1:14296),
> >slot 3, text ID 246486007808 does not match its reference
> from page
> >(1:8421), slot 2.
> >
> >Server: Msg 8974, Level 16, State 1, Line 1
> >
> >Text node referenced by more than one node. Object ID 2,
> text, ntext, or
> >image node page (1:14296), slot 3, text ID 246486007808
> is pointed to by
> >page (1:2028), slot 23 and by page (1:8421), slot 2.
> >
> >Server: Msg 8964, Level 16, State 1, Line 1
> >
> >Table error: Object ID 2. The text, ntext, or image node
> at page (1:14378),
> >slot 1, text ID 234646863872 is not referenced.
> >
> >Server: Msg 8961, Level 16, State 1, Line 1
> >
> >Table error: Object ID 2. The text, ntext, or image node
> at page (1:22060),
> >slot 4, text ID 246504488960 does not match its reference
> from page
> >(1:2531), slot 5.
> >
> >Server: Msg 8974, Level 16, State 1, Line 1
> >
> >Text node referenced by more than one node. Object ID 2,
> text, ntext, or
> >image node page (1:22060), slot 4, text ID 246504488960
> is pointed to by
> >page (1:2531), slot 5 and by page (1:7431), slot 20.
> >
> >DBCC results for 'sunrise'.
> >
> >DBCC results for 'sysobjects'.
> >
> >There are 24482 rows in 435 pages for object 'sysobjects'.
> >
> >DBCC results for 'sysindexes'.
> >
> >There are 2652 rows in 155 pages for object 'sysindexes'.
> >
> >CHECKDB found 0 allocation errors and 9 consistency
> errors in table
> >'sysindexes' (object ID 2).
> >
> >
> >.
> >|||To find the index name use the following query in you database.
select name from dbo.sysindexes
where id = 194502355 and indid = 3
The example above will find the index in the first error.
HTH
--
Barry McAuslin
Look inside your SQL Server files with SQL File Explorer.
Go to http://www.sqlfe.com for more information.
"Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com> wrote
in message news:uRhM7g$lDHA.2000@.TK2MSFTNGP12.phx.gbl...
> This database has over 900 tables. Is there any way to know which table's
> indexes are the problem? Or to rebuild all of the indexes in the
database?
>
> "harvinder" <hs@.metratech.com> wrote in message
> news:0c6301c397eb$fcfeeda0$a501280a@.phx.gbl...
> > most of the appear to belong to index...so better way
> > will be to recreate the corrupted indexes and run dbcc
> > checkdb again
> >
> > Thanks
> > --Harvinder
> >
> > >--Original Message--
> > >We are trying to do some automated weekly optimization
> > processes on a SQL
> > >2000 Server and have had some errors returned when we do
> > a DBCC CheckDB.
> > >I've posted those below. We then tried DBCC CHECKDB
> > repair_allow_data_loss
> > >which returns a message that says that it found 9 errors
> > and repaired 0.
> > >
> > >Can anyone help me determine what kind of errors these
> > are and how they
> > >might be fixed?
> > >
> > >Server: Msg 8929, Level 16, State 1, Line 1
> > >
> > >Object ID 2: Errors found in text ID 231654031360 owned
> > by data record
> > >identified by RID = (1:2026:23) id = 194502355 and indid
> > = 3.
> > >
> > >Server: Msg 8929, Level 16, State 1, Line 1
> > >
> > >Object ID 2: Errors found in text ID 234646667264 owned
> > by data record
> > >identified by RID = (1:2026:24) id = 194502355 and indid
> > = 4.
> > >
> > >Server: Msg 8929, Level 16, State 1, Line 1
> > >
> > >Object ID 2: Errors found in text ID 246486007808 owned
> > by data record
> > >identified by RID = (1:2028:23) id = 469576711 and indid
> > = 7.
> > >
> > >Server: Msg 8929, Level 16, State 1, Line 1
> > >
> > >Object ID 2: Errors found in text ID 246504488960 owned
> > by data record
> > >identified by RID = (1:7431:20) id = 805577908 and indid
> > = 30.
> > >
> > >Server: Msg 8961, Level 16, State 1, Line 1
> > >
> > >Table error: Object ID 2. The text, ntext, or image node
> > at page (1:14296),
> > >slot 3, text ID 246486007808 does not match its reference
> > from page
> > >(1:8421), slot 2.
> > >
> > >Server: Msg 8974, Level 16, State 1, Line 1
> > >
> > >Text node referenced by more than one node. Object ID 2,
> > text, ntext, or
> > >image node page (1:14296), slot 3, text ID 246486007808
> > is pointed to by
> > >page (1:2028), slot 23 and by page (1:8421), slot 2.
> > >
> > >Server: Msg 8964, Level 16, State 1, Line 1
> > >
> > >Table error: Object ID 2. The text, ntext, or image node
> > at page (1:14378),
> > >slot 1, text ID 234646863872 is not referenced.
> > >
> > >Server: Msg 8961, Level 16, State 1, Line 1
> > >
> > >Table error: Object ID 2. The text, ntext, or image node
> > at page (1:22060),
> > >slot 4, text ID 246504488960 does not match its reference
> > from page
> > >(1:2531), slot 5.
> > >
> > >Server: Msg 8974, Level 16, State 1, Line 1
> > >
> > >Text node referenced by more than one node. Object ID 2,
> > text, ntext, or
> > >image node page (1:22060), slot 4, text ID 246504488960
> > is pointed to by
> > >page (1:2531), slot 5 and by page (1:7431), slot 20.
> > >
> > >DBCC results for 'sunrise'.
> > >
> > >DBCC results for 'sysobjects'.
> > >
> > >There are 24482 rows in 435 pages for object 'sysobjects'.
> > >
> > >DBCC results for 'sysindexes'.
> > >
> > >There are 2652 rows in 155 pages for object 'sysindexes'.
> > >
> > >CHECKDB found 0 allocation errors and 9 consistency
> > errors in table
> > >'sysindexes' (object ID 2).
> > >
> > >
> > >.
> > >
>|||Thank you very much. Can you tell me what this means? I have never seen
errors like this on a table.
Table error: Object ID 2. The text, ntext, or image node at page (1:22060),
slot 4, text ID 246504488960 does not match its reference from page
(1:2531), slot 5.
"Barry McAuslin" <barry_mcauslin@.yahoo.com.nospam> wrote in message
news:eipens$lDHA.1676@.TK2MSFTNGP09.phx.gbl...
> To find the index name use the following query in you database.
> select name from dbo.sysindexes
> where id = 194502355 and indid = 3
> The example above will find the index in the first error.
> HTH
> --
> Barry McAuslin
> Look inside your SQL Server files with SQL File Explorer.
> Go to http://www.sqlfe.com for more information.
> "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com> wrote
> in message news:uRhM7g$lDHA.2000@.TK2MSFTNGP12.phx.gbl...
> > This database has over 900 tables. Is there any way to know which
table's
> > indexes are the problem? Or to rebuild all of the indexes in the
> database?
> >
> >
> > "harvinder" <hs@.metratech.com> wrote in message
> > news:0c6301c397eb$fcfeeda0$a501280a@.phx.gbl...
> > > most of the appear to belong to index...so better way
> > > will be to recreate the corrupted indexes and run dbcc
> > > checkdb again
> > >
> > > Thanks
> > > --Harvinder
> > >
> > > >--Original Message--
> > > >We are trying to do some automated weekly optimization
> > > processes on a SQL
> > > >2000 Server and have had some errors returned when we do
> > > a DBCC CheckDB.
> > > >I've posted those below. We then tried DBCC CHECKDB
> > > repair_allow_data_loss
> > > >which returns a message that says that it found 9 errors
> > > and repaired 0.
> > > >
> > > >Can anyone help me determine what kind of errors these
> > > are and how they
> > > >might be fixed?
> > > >
> > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > >
> > > >Object ID 2: Errors found in text ID 231654031360 owned
> > > by data record
> > > >identified by RID = (1:2026:23) id = 194502355 and indid
> > > = 3.
> > > >
> > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > >
> > > >Object ID 2: Errors found in text ID 234646667264 owned
> > > by data record
> > > >identified by RID = (1:2026:24) id = 194502355 and indid
> > > = 4.
> > > >
> > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > >
> > > >Object ID 2: Errors found in text ID 246486007808 owned
> > > by data record
> > > >identified by RID = (1:2028:23) id = 469576711 and indid
> > > = 7.
> > > >
> > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > >
> > > >Object ID 2: Errors found in text ID 246504488960 owned
> > > by data record
> > > >identified by RID = (1:7431:20) id = 805577908 and indid
> > > = 30.
> > > >
> > > >Server: Msg 8961, Level 16, State 1, Line 1
> > > >
> > > >Table error: Object ID 2. The text, ntext, or image node
> > > at page (1:14296),
> > > >slot 3, text ID 246486007808 does not match its reference
> > > from page
> > > >(1:8421), slot 2.
> > > >
> > > >Server: Msg 8974, Level 16, State 1, Line 1
> > > >
> > > >Text node referenced by more than one node. Object ID 2,
> > > text, ntext, or
> > > >image node page (1:14296), slot 3, text ID 246486007808
> > > is pointed to by
> > > >page (1:2028), slot 23 and by page (1:8421), slot 2.
> > > >
> > > >Server: Msg 8964, Level 16, State 1, Line 1
> > > >
> > > >Table error: Object ID 2. The text, ntext, or image node
> > > at page (1:14378),
> > > >slot 1, text ID 234646863872 is not referenced.
> > > >
> > > >Server: Msg 8961, Level 16, State 1, Line 1
> > > >
> > > >Table error: Object ID 2. The text, ntext, or image node
> > > at page (1:22060),
> > > >slot 4, text ID 246504488960 does not match its reference
> > > from page
> > > >(1:2531), slot 5.
> > > >
> > > >Server: Msg 8974, Level 16, State 1, Line 1
> > > >
> > > >Text node referenced by more than one node. Object ID 2,
> > > text, ntext, or
> > > >image node page (1:22060), slot 4, text ID 246504488960
> > > is pointed to by
> > > >page (1:2531), slot 5 and by page (1:7431), slot 20.
> > > >
> > > >DBCC results for 'sunrise'.
> > > >
> > > >DBCC results for 'sysobjects'.
> > > >
> > > >There are 24482 rows in 435 pages for object 'sysobjects'.
> > > >
> > > >DBCC results for 'sysindexes'.
> > > >
> > > >There are 2652 rows in 155 pages for object 'sysindexes'.
> > > >
> > > >CHECKDB found 0 allocation errors and 9 consistency
> > > errors in table
> > > >'sysindexes' (object ID 2).
> > > >
> > > >
> > > >.
> > > >
> >
> >
>|||Basically you have some kind of database corruption.
A table with an image column in it (sysindexes in this case) which has a
reference to an image blob (in this case the column statblob, which is for
index statistics). The location it is pointing to is owned by another
object.
I would first try
DBCC CHECKDB ( 'database_name' REPAIR_ALLOW_DATA_LOSS )
I would not worry about the data loss as all you problems a with the
statblob column in the sysindexs table. This data can be recreated by the
DB maintenance wizard.
Then run the DB maintenance plan for updating your statistics and see what
happens.
If this does not fix the problem then I guess your only solution is to
create a new database, script all objects, and copy all data.
Hope this helps
--
Barry McAuslin
Look inside your SQL Server files with SQL File Explorer.
Go to http://www.sqlfe.com for more information.
"Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com> wrote
in message news:OuDI3WAmDHA.2732@.TK2MSFTNGP11.phx.gbl...
> Thank you very much. Can you tell me what this means? I have never seen
> errors like this on a table.
> Table error: Object ID 2. The text, ntext, or image node at page
(1:22060),
> slot 4, text ID 246504488960 does not match its reference from page
> (1:2531), slot 5.
> "Barry McAuslin" <barry_mcauslin@.yahoo.com.nospam> wrote in message
> news:eipens$lDHA.1676@.TK2MSFTNGP09.phx.gbl...
> > To find the index name use the following query in you database.
> >
> > select name from dbo.sysindexes
> > where id = 194502355 and indid = 3
> >
> > The example above will find the index in the first error.
> >
> > HTH
> >
> > --
> >
> > Barry McAuslin
> >
> > Look inside your SQL Server files with SQL File Explorer.
> > Go to http://www.sqlfe.com for more information.
> >
> > "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com>
wrote
> > in message news:uRhM7g$lDHA.2000@.TK2MSFTNGP12.phx.gbl...
> > > This database has over 900 tables. Is there any way to know which
> table's
> > > indexes are the problem? Or to rebuild all of the indexes in the
> > database?
> > >
> > >
> > > "harvinder" <hs@.metratech.com> wrote in message
> > > news:0c6301c397eb$fcfeeda0$a501280a@.phx.gbl...
> > > > most of the appear to belong to index...so better way
> > > > will be to recreate the corrupted indexes and run dbcc
> > > > checkdb again
> > > >
> > > > Thanks
> > > > --Harvinder
> > > >
> > > > >--Original Message--
> > > > >We are trying to do some automated weekly optimization
> > > > processes on a SQL
> > > > >2000 Server and have had some errors returned when we do
> > > > a DBCC CheckDB.
> > > > >I've posted those below. We then tried DBCC CHECKDB
> > > > repair_allow_data_loss
> > > > >which returns a message that says that it found 9 errors
> > > > and repaired 0.
> > > > >
> > > > >Can anyone help me determine what kind of errors these
> > > > are and how they
> > > > >might be fixed?
> > > > >
> > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > >
> > > > >Object ID 2: Errors found in text ID 231654031360 owned
> > > > by data record
> > > > >identified by RID = (1:2026:23) id = 194502355 and indid
> > > > = 3.
> > > > >
> > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > >
> > > > >Object ID 2: Errors found in text ID 234646667264 owned
> > > > by data record
> > > > >identified by RID = (1:2026:24) id = 194502355 and indid
> > > > = 4.
> > > > >
> > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > >
> > > > >Object ID 2: Errors found in text ID 246486007808 owned
> > > > by data record
> > > > >identified by RID = (1:2028:23) id = 469576711 and indid
> > > > = 7.
> > > > >
> > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > >
> > > > >Object ID 2: Errors found in text ID 246504488960 owned
> > > > by data record
> > > > >identified by RID = (1:7431:20) id = 805577908 and indid
> > > > = 30.
> > > > >
> > > > >Server: Msg 8961, Level 16, State 1, Line 1
> > > > >
> > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > at page (1:14296),
> > > > >slot 3, text ID 246486007808 does not match its reference
> > > > from page
> > > > >(1:8421), slot 2.
> > > > >
> > > > >Server: Msg 8974, Level 16, State 1, Line 1
> > > > >
> > > > >Text node referenced by more than one node. Object ID 2,
> > > > text, ntext, or
> > > > >image node page (1:14296), slot 3, text ID 246486007808
> > > > is pointed to by
> > > > >page (1:2028), slot 23 and by page (1:8421), slot 2.
> > > > >
> > > > >Server: Msg 8964, Level 16, State 1, Line 1
> > > > >
> > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > at page (1:14378),
> > > > >slot 1, text ID 234646863872 is not referenced.
> > > > >
> > > > >Server: Msg 8961, Level 16, State 1, Line 1
> > > > >
> > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > at page (1:22060),
> > > > >slot 4, text ID 246504488960 does not match its reference
> > > > from page
> > > > >(1:2531), slot 5.
> > > > >
> > > > >Server: Msg 8974, Level 16, State 1, Line 1
> > > > >
> > > > >Text node referenced by more than one node. Object ID 2,
> > > > text, ntext, or
> > > > >image node page (1:22060), slot 4, text ID 246504488960
> > > > is pointed to by
> > > > >page (1:2531), slot 5 and by page (1:7431), slot 20.
> > > > >
> > > > >DBCC results for 'sunrise'.
> > > > >
> > > > >DBCC results for 'sysobjects'.
> > > > >
> > > > >There are 24482 rows in 435 pages for object 'sysobjects'.
> > > > >
> > > > >DBCC results for 'sysindexes'.
> > > > >
> > > > >There are 2652 rows in 155 pages for object 'sysindexes'.
> > > > >
> > > > >CHECKDB found 0 allocation errors and 9 consistency
> > > > errors in table
> > > > >'sysindexes' (object ID 2).
> > > > >
> > > > >
> > > > >.
> > > > >
> > >
> > >
> >
> >
>|||Yes.
--
Barry McAuslin
Look inside your SQL Server files with SQL File Explorer.
Go to http://www.sqlfe.com for more information.
"Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com> wrote
in message news:uZHO3k%23lDHA.744@.tk2msftngp13.phx.gbl...
> The latest backup was made after these messages were created. Wouldn't
> these errors still exist after restoring?
>
> "Stressed" <k@.c.co.uk> wrote in message
> news:Odykkb%23lDHA.988@.TK2MSFTNGP10.phx.gbl...
> > At a guess, if sql server is unable to repair the database (even with
data
> > loss,
> > if that is acceptable to you), you will need to restore from your latest
> > backup.
> >
> > Verify this before taking any action though
> >
> >
> > "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com>
wrote
> > in message news:eBh7qp9lDHA.2732@.TK2MSFTNGP11.phx.gbl...
> > > We are trying to do some automated weekly optimization processes on a
> SQL
> > > 2000 Server and have had some errors returned when we do a DBCC
CheckDB.
> > > I've posted those below. We then tried DBCC CHECKDB
> > repair_allow_data_loss
> > > which returns a message that says that it found 9 errors and repaired
0.
> > >
> > > Can anyone help me determine what kind of errors these are and how
they
> > > might be fixed?
> > >
> > > Server: Msg 8929, Level 16, State 1, Line 1
> > >
> > > Object ID 2: Errors found in text ID 231654031360 owned by data record
> > > identified by RID = (1:2026:23) id = 194502355 and indid = 3.
> > >
> > > Server: Msg 8929, Level 16, State 1, Line 1
> > >
> > > Object ID 2: Errors found in text ID 234646667264 owned by data record
> > > identified by RID = (1:2026:24) id = 194502355 and indid = 4.
> > >
> > > Server: Msg 8929, Level 16, State 1, Line 1
> > >
> > > Object ID 2: Errors found in text ID 246486007808 owned by data record
> > > identified by RID = (1:2028:23) id = 469576711 and indid = 7.
> > >
> > > Server: Msg 8929, Level 16, State 1, Line 1
> > >
> > > Object ID 2: Errors found in text ID 246504488960 owned by data record
> > > identified by RID = (1:7431:20) id = 805577908 and indid = 30.
> > >
> > > Server: Msg 8961, Level 16, State 1, Line 1
> > >
> > > Table error: Object ID 2. The text, ntext, or image node at page
> > (1:14296),
> > > slot 3, text ID 246486007808 does not match its reference from page
> > > (1:8421), slot 2.
> > >
> > > Server: Msg 8974, Level 16, State 1, Line 1
> > >
> > > Text node referenced by more than one node. Object ID 2, text, ntext,
or
> > > image node page (1:14296), slot 3, text ID 246486007808 is pointed to
by
> > > page (1:2028), slot 23 and by page (1:8421), slot 2.
> > >
> > > Server: Msg 8964, Level 16, State 1, Line 1
> > >
> > > Table error: Object ID 2. The text, ntext, or image node at page
> > (1:14378),
> > > slot 1, text ID 234646863872 is not referenced.
> > >
> > > Server: Msg 8961, Level 16, State 1, Line 1
> > >
> > > Table error: Object ID 2. The text, ntext, or image node at page
> > (1:22060),
> > > slot 4, text ID 246504488960 does not match its reference from page
> > > (1:2531), slot 5.
> > >
> > > Server: Msg 8974, Level 16, State 1, Line 1
> > >
> > > Text node referenced by more than one node. Object ID 2, text, ntext,
or
> > > image node page (1:22060), slot 4, text ID 246504488960 is pointed to
by
> > > page (1:2531), slot 5 and by page (1:7431), slot 20.
> > >
> > > DBCC results for 'sunrise'.
> > >
> > > DBCC results for 'sysobjects'.
> > >
> > > There are 24482 rows in 435 pages for object 'sysobjects'.
> > >
> > > DBCC results for 'sysindexes'.
> > >
> > > There are 2652 rows in 155 pages for object 'sysindexes'.
> > >
> > > CHECKDB found 0 allocation errors and 9 consistency errors in table
> > > 'sysindexes' (object ID 2).
> > >
> > >
> >
> >
>|||... so that should be restated as "the latest clean backup". However, you can re-apply your
transaction log backups. The corruption will likely not re-appear when you apply a transaction log
backup taken after the corruption occurred in the original db.
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Barry McAuslin" <barry_mcauslin@.yahoo.com.nospam> wrote in message
news:uznbxyFmDHA.2772@.TK2MSFTNGP10.phx.gbl...
> Yes.
> --
> Barry McAuslin
> Look inside your SQL Server files with SQL File Explorer.
> Go to http://www.sqlfe.com for more information.
> "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com> wrote
> in message news:uZHO3k%23lDHA.744@.tk2msftngp13.phx.gbl...
> > The latest backup was made after these messages were created. Wouldn't
> > these errors still exist after restoring?
> >
> >
> > "Stressed" <k@.c.co.uk> wrote in message
> > news:Odykkb%23lDHA.988@.TK2MSFTNGP10.phx.gbl...
> > > At a guess, if sql server is unable to repair the database (even with
> data
> > > loss,
> > > if that is acceptable to you), you will need to restore from your latest
> > > backup.
> > >
> > > Verify this before taking any action though
> > >
> > >
> > > "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com>
> wrote
> > > in message news:eBh7qp9lDHA.2732@.TK2MSFTNGP11.phx.gbl...
> > > > We are trying to do some automated weekly optimization processes on a
> > SQL
> > > > 2000 Server and have had some errors returned when we do a DBCC
> CheckDB.
> > > > I've posted those below. We then tried DBCC CHECKDB
> > > repair_allow_data_loss
> > > > which returns a message that says that it found 9 errors and repaired
> 0.
> > > >
> > > > Can anyone help me determine what kind of errors these are and how
> they
> > > > might be fixed?
> > > >
> > > > Server: Msg 8929, Level 16, State 1, Line 1
> > > >
> > > > Object ID 2: Errors found in text ID 231654031360 owned by data record
> > > > identified by RID = (1:2026:23) id = 194502355 and indid = 3.
> > > >
> > > > Server: Msg 8929, Level 16, State 1, Line 1
> > > >
> > > > Object ID 2: Errors found in text ID 234646667264 owned by data record
> > > > identified by RID = (1:2026:24) id = 194502355 and indid = 4.
> > > >
> > > > Server: Msg 8929, Level 16, State 1, Line 1
> > > >
> > > > Object ID 2: Errors found in text ID 246486007808 owned by data record
> > > > identified by RID = (1:2028:23) id = 469576711 and indid = 7.
> > > >
> > > > Server: Msg 8929, Level 16, State 1, Line 1
> > > >
> > > > Object ID 2: Errors found in text ID 246504488960 owned by data record
> > > > identified by RID = (1:7431:20) id = 805577908 and indid = 30.
> > > >
> > > > Server: Msg 8961, Level 16, State 1, Line 1
> > > >
> > > > Table error: Object ID 2. The text, ntext, or image node at page
> > > (1:14296),
> > > > slot 3, text ID 246486007808 does not match its reference from page
> > > > (1:8421), slot 2.
> > > >
> > > > Server: Msg 8974, Level 16, State 1, Line 1
> > > >
> > > > Text node referenced by more than one node. Object ID 2, text, ntext,
> or
> > > > image node page (1:14296), slot 3, text ID 246486007808 is pointed to
> by
> > > > page (1:2028), slot 23 and by page (1:8421), slot 2.
> > > >
> > > > Server: Msg 8964, Level 16, State 1, Line 1
> > > >
> > > > Table error: Object ID 2. The text, ntext, or image node at page
> > > (1:14378),
> > > > slot 1, text ID 234646863872 is not referenced.
> > > >
> > > > Server: Msg 8961, Level 16, State 1, Line 1
> > > >
> > > > Table error: Object ID 2. The text, ntext, or image node at page
> > > (1:22060),
> > > > slot 4, text ID 246504488960 does not match its reference from page
> > > > (1:2531), slot 5.
> > > >
> > > > Server: Msg 8974, Level 16, State 1, Line 1
> > > >
> > > > Text node referenced by more than one node. Object ID 2, text, ntext,
> or
> > > > image node page (1:22060), slot 4, text ID 246504488960 is pointed to
> by
> > > > page (1:2531), slot 5 and by page (1:7431), slot 20.
> > > >
> > > > DBCC results for 'sunrise'.
> > > >
> > > > DBCC results for 'sysobjects'.
> > > >
> > > > There are 24482 rows in 435 pages for object 'sysobjects'.
> > > >
> > > > DBCC results for 'sysindexes'.
> > > >
> > > > There are 2652 rows in 155 pages for object 'sysindexes'.
> > > >
> > > > CHECKDB found 0 allocation errors and 9 consistency errors in table
> > > > 'sysindexes' (object ID 2).
> > > >
> > > >
> > >
> > >
> >
> >
>|||Barry,
The OP stated that allow_data_loss was already tried :-(...
Deborah,
I'd go for the restore route. See my other post regarding restoring transaction log backups.
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Barry McAuslin" <barry_mcauslin@.yahoo.com.nospam> wrote in message
news:%23JOayyFmDHA.2772@.TK2MSFTNGP10.phx.gbl...
> Basically you have some kind of database corruption.
> A table with an image column in it (sysindexes in this case) which has a
> reference to an image blob (in this case the column statblob, which is for
> index statistics). The location it is pointing to is owned by another
> object.
> I would first try
> DBCC CHECKDB ( 'database_name' REPAIR_ALLOW_DATA_LOSS )
> I would not worry about the data loss as all you problems a with the
> statblob column in the sysindexs table. This data can be recreated by the
> DB maintenance wizard.
> Then run the DB maintenance plan for updating your statistics and see what
> happens.
> If this does not fix the problem then I guess your only solution is to
> create a new database, script all objects, and copy all data.
> Hope this helps
> --
> Barry McAuslin
> Look inside your SQL Server files with SQL File Explorer.
> Go to http://www.sqlfe.com for more information.
> "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com> wrote
> in message news:OuDI3WAmDHA.2732@.TK2MSFTNGP11.phx.gbl...
> > Thank you very much. Can you tell me what this means? I have never seen
> > errors like this on a table.
> >
> > Table error: Object ID 2. The text, ntext, or image node at page
> (1:22060),
> > slot 4, text ID 246504488960 does not match its reference from page
> > (1:2531), slot 5.
> >
> > "Barry McAuslin" <barry_mcauslin@.yahoo.com.nospam> wrote in message
> > news:eipens$lDHA.1676@.TK2MSFTNGP09.phx.gbl...
> > > To find the index name use the following query in you database.
> > >
> > > select name from dbo.sysindexes
> > > where id = 194502355 and indid = 3
> > >
> > > The example above will find the index in the first error.
> > >
> > > HTH
> > >
> > > --
> > >
> > > Barry McAuslin
> > >
> > > Look inside your SQL Server files with SQL File Explorer.
> > > Go to http://www.sqlfe.com for more information.
> > >
> > > "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com>
> wrote
> > > in message news:uRhM7g$lDHA.2000@.TK2MSFTNGP12.phx.gbl...
> > > > This database has over 900 tables. Is there any way to know which
> > table's
> > > > indexes are the problem? Or to rebuild all of the indexes in the
> > > database?
> > > >
> > > >
> > > > "harvinder" <hs@.metratech.com> wrote in message
> > > > news:0c6301c397eb$fcfeeda0$a501280a@.phx.gbl...
> > > > > most of the appear to belong to index...so better way
> > > > > will be to recreate the corrupted indexes and run dbcc
> > > > > checkdb again
> > > > >
> > > > > Thanks
> > > > > --Harvinder
> > > > >
> > > > > >--Original Message--
> > > > > >We are trying to do some automated weekly optimization
> > > > > processes on a SQL
> > > > > >2000 Server and have had some errors returned when we do
> > > > > a DBCC CheckDB.
> > > > > >I've posted those below. We then tried DBCC CHECKDB
> > > > > repair_allow_data_loss
> > > > > >which returns a message that says that it found 9 errors
> > > > > and repaired 0.
> > > > > >
> > > > > >Can anyone help me determine what kind of errors these
> > > > > are and how they
> > > > > >might be fixed?
> > > > > >
> > > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > > >
> > > > > >Object ID 2: Errors found in text ID 231654031360 owned
> > > > > by data record
> > > > > >identified by RID = (1:2026:23) id = 194502355 and indid
> > > > > = 3.
> > > > > >
> > > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > > >
> > > > > >Object ID 2: Errors found in text ID 234646667264 owned
> > > > > by data record
> > > > > >identified by RID = (1:2026:24) id = 194502355 and indid
> > > > > = 4.
> > > > > >
> > > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > > >
> > > > > >Object ID 2: Errors found in text ID 246486007808 owned
> > > > > by data record
> > > > > >identified by RID = (1:2028:23) id = 469576711 and indid
> > > > > = 7.
> > > > > >
> > > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > > >
> > > > > >Object ID 2: Errors found in text ID 246504488960 owned
> > > > > by data record
> > > > > >identified by RID = (1:7431:20) id = 805577908 and indid
> > > > > = 30.
> > > > > >
> > > > > >Server: Msg 8961, Level 16, State 1, Line 1
> > > > > >
> > > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > > at page (1:14296),
> > > > > >slot 3, text ID 246486007808 does not match its reference
> > > > > from page
> > > > > >(1:8421), slot 2.
> > > > > >
> > > > > >Server: Msg 8974, Level 16, State 1, Line 1
> > > > > >
> > > > > >Text node referenced by more than one node. Object ID 2,
> > > > > text, ntext, or
> > > > > >image node page (1:14296), slot 3, text ID 246486007808
> > > > > is pointed to by
> > > > > >page (1:2028), slot 23 and by page (1:8421), slot 2.
> > > > > >
> > > > > >Server: Msg 8964, Level 16, State 1, Line 1
> > > > > >
> > > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > > at page (1:14378),
> > > > > >slot 1, text ID 234646863872 is not referenced.
> > > > > >
> > > > > >Server: Msg 8961, Level 16, State 1, Line 1
> > > > > >
> > > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > > at page (1:22060),
> > > > > >slot 4, text ID 246504488960 does not match its reference
> > > > > from page
> > > > > >(1:2531), slot 5.
> > > > > >
> > > > > >Server: Msg 8974, Level 16, State 1, Line 1
> > > > > >
> > > > > >Text node referenced by more than one node. Object ID 2,
> > > > > text, ntext, or
> > > > > >image node page (1:22060), slot 4, text ID 246504488960
> > > > > is pointed to by
> > > > > >page (1:2531), slot 5 and by page (1:7431), slot 20.
> > > > > >
> > > > > >DBCC results for 'sunrise'.
> > > > > >
> > > > > >DBCC results for 'sysobjects'.
> > > > > >
> > > > > >There are 24482 rows in 435 pages for object 'sysobjects'.
> > > > > >
> > > > > >DBCC results for 'sysindexes'.
> > > > > >
> > > > > >There are 2652 rows in 155 pages for object 'sysindexes'.
> > > > > >
> > > > > >CHECKDB found 0 allocation errors and 9 consistency
> > > > > errors in table
> > > > > >'sysindexes' (object ID 2).
> > > > > >
> > > > > >
> > > > > >.
> > > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>|||Thank you Tibor. I appreciate all the responses.
I've been told that a couple of weeks ago, there was some corruption to the
RAID array and a new one was installed. I believe that some of these
problems began then. I also found out that the version of SQL on the box
was the RTM version, no service packs. (This is not one of my servers; I
provide support as needed to their support people.)
I've passed on the advice given here. They've already tried scripting the
objects in the database for possible data export. However, the script
process runs about 20 minutes and then just hangs without finishing. I
believe that they are going to go with restoring the last known clean backup
and then applying all the transaction logs since then. I will post here
with an update on the results.
Thanks again,
Deborah
"Tibor Karaszi" <tibor.please_reply_to_public_forum.karaszi@.cornerstone.se>
wrote in message news:eZksgTGmDHA.372@.TK2MSFTNGP11.phx.gbl...
> Barry,
> The OP stated that allow_data_loss was already tried :-(...
>
> Deborah,
> I'd go for the restore route. See my other post regarding restoring
transaction log backups.
> --
> Tibor Karaszi, SQL Server MVP
> Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
>
> "Barry McAuslin" <barry_mcauslin@.yahoo.com.nospam> wrote in message
> news:%23JOayyFmDHA.2772@.TK2MSFTNGP10.phx.gbl...
> > Basically you have some kind of database corruption.
> >
> > A table with an image column in it (sysindexes in this case) which has a
> > reference to an image blob (in this case the column statblob, which is
for
> > index statistics). The location it is pointing to is owned by another
> > object.
> >
> > I would first try
> >
> > DBCC CHECKDB ( 'database_name' REPAIR_ALLOW_DATA_LOSS )
> >
> > I would not worry about the data loss as all you problems a with the
> > statblob column in the sysindexs table. This data can be recreated by
the
> > DB maintenance wizard.
> >
> > Then run the DB maintenance plan for updating your statistics and see
what
> > happens.
> >
> > If this does not fix the problem then I guess your only solution is to
> > create a new database, script all objects, and copy all data.
> >
> > Hope this helps
> >
> > --
> >
> > Barry McAuslin
> >
> > Look inside your SQL Server files with SQL File Explorer.
> > Go to http://www.sqlfe.com for more information.
> >
> > "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com>
wrote
> > in message news:OuDI3WAmDHA.2732@.TK2MSFTNGP11.phx.gbl...
> > > Thank you very much. Can you tell me what this means? I have never
seen
> > > errors like this on a table.
> > >
> > > Table error: Object ID 2. The text, ntext, or image node at page
> > (1:22060),
> > > slot 4, text ID 246504488960 does not match its reference from page
> > > (1:2531), slot 5.
> > >
> > > "Barry McAuslin" <barry_mcauslin@.yahoo.com.nospam> wrote in message
> > > news:eipens$lDHA.1676@.TK2MSFTNGP09.phx.gbl...
> > > > To find the index name use the following query in you database.
> > > >
> > > > select name from dbo.sysindexes
> > > > where id = 194502355 and indid = 3
> > > >
> > > > The example above will find the index in the first error.
> > > >
> > > > HTH
> > > >
> > > > --
> > > >
> > > > Barry McAuslin
> > > >
> > > > Look inside your SQL Server files with SQL File Explorer.
> > > > Go to http://www.sqlfe.com for more information.
> > > >
> > > > "Deborah Bohannon" <dbohannon@.nationalDONOTSENDHEREcareanetwork.com>
> > wrote
> > > > in message news:uRhM7g$lDHA.2000@.TK2MSFTNGP12.phx.gbl...
> > > > > This database has over 900 tables. Is there any way to know which
> > > table's
> > > > > indexes are the problem? Or to rebuild all of the indexes in the
> > > > database?
> > > > >
> > > > >
> > > > > "harvinder" <hs@.metratech.com> wrote in message
> > > > > news:0c6301c397eb$fcfeeda0$a501280a@.phx.gbl...
> > > > > > most of the appear to belong to index...so better way
> > > > > > will be to recreate the corrupted indexes and run dbcc
> > > > > > checkdb again
> > > > > >
> > > > > > Thanks
> > > > > > --Harvinder
> > > > > >
> > > > > > >--Original Message--
> > > > > > >We are trying to do some automated weekly optimization
> > > > > > processes on a SQL
> > > > > > >2000 Server and have had some errors returned when we do
> > > > > > a DBCC CheckDB.
> > > > > > >I've posted those below. We then tried DBCC CHECKDB
> > > > > > repair_allow_data_loss
> > > > > > >which returns a message that says that it found 9 errors
> > > > > > and repaired 0.
> > > > > > >
> > > > > > >Can anyone help me determine what kind of errors these
> > > > > > are and how they
> > > > > > >might be fixed?
> > > > > > >
> > > > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Object ID 2: Errors found in text ID 231654031360 owned
> > > > > > by data record
> > > > > > >identified by RID = (1:2026:23) id = 194502355 and indid
> > > > > > = 3.
> > > > > > >
> > > > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Object ID 2: Errors found in text ID 234646667264 owned
> > > > > > by data record
> > > > > > >identified by RID = (1:2026:24) id = 194502355 and indid
> > > > > > = 4.
> > > > > > >
> > > > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Object ID 2: Errors found in text ID 246486007808 owned
> > > > > > by data record
> > > > > > >identified by RID = (1:2028:23) id = 469576711 and indid
> > > > > > = 7.
> > > > > > >
> > > > > > >Server: Msg 8929, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Object ID 2: Errors found in text ID 246504488960 owned
> > > > > > by data record
> > > > > > >identified by RID = (1:7431:20) id = 805577908 and indid
> > > > > > = 30.
> > > > > > >
> > > > > > >Server: Msg 8961, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > > > at page (1:14296),
> > > > > > >slot 3, text ID 246486007808 does not match its reference
> > > > > > from page
> > > > > > >(1:8421), slot 2.
> > > > > > >
> > > > > > >Server: Msg 8974, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Text node referenced by more than one node. Object ID 2,
> > > > > > text, ntext, or
> > > > > > >image node page (1:14296), slot 3, text ID 246486007808
> > > > > > is pointed to by
> > > > > > >page (1:2028), slot 23 and by page (1:8421), slot 2.
> > > > > > >
> > > > > > >Server: Msg 8964, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > > > at page (1:14378),
> > > > > > >slot 1, text ID 234646863872 is not referenced.
> > > > > > >
> > > > > > >Server: Msg 8961, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Table error: Object ID 2. The text, ntext, or image node
> > > > > > at page (1:22060),
> > > > > > >slot 4, text ID 246504488960 does not match its reference
> > > > > > from page
> > > > > > >(1:2531), slot 5.
> > > > > > >
> > > > > > >Server: Msg 8974, Level 16, State 1, Line 1
> > > > > > >
> > > > > > >Text node referenced by more than one node. Object ID 2,
> > > > > > text, ntext, or
> > > > > > >image node page (1:22060), slot 4, text ID 246504488960
> > > > > > is pointed to by
> > > > > > >page (1:2531), slot 5 and by page (1:7431), slot 20.
> > > > > > >
> > > > > > >DBCC results for 'sunrise'.
> > > > > > >
> > > > > > >DBCC results for 'sysobjects'.
> > > > > > >
> > > > > > >There are 24482 rows in 435 pages for object 'sysobjects'.
> > > > > > >
> > > > > > >DBCC results for 'sysindexes'.
> > > > > > >
> > > > > > >There are 2652 rows in 155 pages for object 'sysindexes'.
> > > > > > >
> > > > > > >CHECKDB found 0 allocation errors and 9 consistency
> > > > > > errors in table
> > > > > > >'sysindexes' (object ID 2).
> > > > > > >
> > > > > > >
> > > > > > >.
> > > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>

Sunday, March 11, 2012

Dbcc Inputbuffer

Hi folks.
DBCC INPUTBUFFER(79)
the statement returned is too short, not full. Can i get full STATEMENT that is sent by the user.
Howdy!If you are using sp3a see "What's New" in the release notes. Otherwise, no.

-PatP|||Hi Pat, thanx.
select serverproperty('productlevel')
returns SP3.
There are BOOKSONLINE in the programs group only. Where to find the release notes.

Howdy!|||There is a new function in SP3 called fn_get_sql.

Here is an article:

http://www.novicksoftware.com/UDFofWeek/Vol1/T-SQL-UDF-Volume-1-Number-14-fn_get_sql.htm

HTH,
Roby2222|||If you check the release notes for sp3a (http://www.microsoft.com/sql/downloads/2000/sp3.asp?SD=gn&LN=en-us&gssnb=1), you'll find a reference to fn_get_sql (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_fa-fz_3nqa.asp) that ought to solve your problem.

-PatP|||Thanx all.
But there's a problem.
i can get the STATEMENT only for SPIDs that r currently running. Not for those which have status SLEEPING.
DBCC INPUTBUFFER returns the last statment for SLEEPING connections but ::fn_get_sql doesn't.

eg. if i open QA , execute STATEMENT and don't disconnect, i can get the text from DBCCINPUTBUFFER but not from the function.

Howdy!