Not sure...but the manual says that a user with the db_backupoperator role
should be able to issue the dbcc commands. So I created a user, added the
role, and he cannot issue any dbcc commands. I even logged out and logged
back in without any success.
This is what I get:
1> dbcc checkdb(yada)
2> go
Msg 7983, Level 14, State 8, Server YADA, Line 1
User 'dbcc_user01' does not have permission to run DBCC CHECKDB for database
'yada'.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
I found this proc to check the role, and dbcc's aren't listed here...but I
am not sure if they would be...
1> sp_dbfixedrolepermission db_backupoperator
2> go
DbFixedRole
Permission
-- --
db_backupoperator
BACKUP DATABASE
db_backupoperator
BACKUP LOG
db_backupoperator
CHECKPOINT
I then granted the user dbo...and of course then he can do the dbcc's.
Thanks for any info!
Which manual and which DBCC commands does it say should work?
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Chris" <Chris@.discussions.microsoft.com> wrote in message
news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
> Not sure...but the manual says that a user with the db_backupoperator role
> should be able to issue the dbcc commands. So I created a user, added the
> role, and he cannot issue any dbcc commands. I even logged out and logged
> back in without any success.
> This is what I get:
> 1> dbcc checkdb(yada)
> 2> go
> Msg 7983, Level 14, State 8, Server YADA, Line 1
> User 'dbcc_user01' does not have permission to run DBCC CHECKDB for
database
> 'yada'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> I found this proc to check the role, and dbcc's aren't listed here...but I
> am not sure if they would be...
>
> 1> sp_dbfixedrolepermission db_backupoperator
> 2> go
> DbFixedRole
> Permission
> ----
--
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
> I then granted the user dbo...and of course then he can do the dbcc's.
> Thanks for any info!
|||In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
can be run but does not list which ones.
Andrew J. Kelly SQL MVP
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:ud5VUY1yEHA.3552@.TK2MSFTNGP10.phx.gbl...
> Which manual and which DBCC commands does it say should work?
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "Chris" <Chris@.discussions.microsoft.com> wrote in message
> news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
> database
> --
>
|||Which manual says that? It's not correct.
In your example of executing dbcc checkdb, if you look up
the permissions section of this command in books online, it
will indicate that only sysadmins and db_owners can execute
this.
The fixed database role db_backupoperator can issue backup
statements for the current database. Not much more with that
role.
-Sue
On Mon, 15 Nov 2004 09:28:02 -0800, "Chris"
<Chris@.discussions.microsoft.com> wrote:
>Not sure...but the manual says that a user with the db_backupoperator role
>should be able to issue the dbcc commands. So I created a user, added the
>role, and he cannot issue any dbcc commands. I even logged out and logged
>back in without any success.
>This is what I get:
>1> dbcc checkdb(yada)
>2> go
>Msg 7983, Level 14, State 8, Server YADA, Line 1
>User 'dbcc_user01' does not have permission to run DBCC CHECKDB for database
>'yada'.
>DBCC execution completed. If DBCC printed error messages, contact your
>system administrator.
>
>I found this proc to check the role, and dbcc's aren't listed here...but I
>am not sure if they would be...
>
>1> sp_dbfixedrolepermission db_backupoperator
>2> go
> DbFixedRole
> Permission
>----
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
>I then granted the user dbo...and of course then he can do the dbcc's.
>Thanks for any info!
|||I just found the page you are referring to - it's not too
well documented is it.
I think the only dbcc that role can execute is checkcatalog
- as well as checkpoint and backup statements. .
-Sue
On Mon, 15 Nov 2004 16:09:15 -0500, "Andrew J. Kelly"
<sqlmvpnooospam@.shadhawk.com> wrote:
>In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
>can be run but does not list which ones.
Showing posts with label dbcc. Show all posts
Showing posts with label dbcc. Show all posts
Sunday, March 25, 2012
db_backupoperator cannot issue dbcc commands
Not sure...but the manual says that a user with the db_backupoperator role
should be able to issue the dbcc commands. So I created a user, added the
role, and he cannot issue any dbcc commands. I even logged out and logged
back in without any success.
This is what I get:
1> dbcc checkdb(yada)
2> go
Msg 7983, Level 14, State 8, Server YADA, Line 1
User 'dbcc_user01' does not have permission to run DBCC CHECKDB for database
'yada'.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
I found this proc to check the role, and dbcc's aren't listed here...but I
am not sure if they would be...
1> sp_dbfixedrolepermission db_backupoperator
2> go
DbFixedRole
Permission
----
--
-- --
db_backupoperator
BACKUP DATABASE
db_backupoperator
BACKUP LOG
db_backupoperator
CHECKPOINT
I then granted the user dbo...and of course then he can do the dbcc's.
Thanks for any info!Which manual and which DBCC commands does it say should work?
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Chris" <Chris@.discussions.microsoft.com> wrote in message
news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
> Not sure...but the manual says that a user with the db_backupoperator role
> should be able to issue the dbcc commands. So I created a user, added the
> role, and he cannot issue any dbcc commands. I even logged out and logged
> back in without any success.
> This is what I get:
> 1> dbcc checkdb(yada)
> 2> go
> Msg 7983, Level 14, State 8, Server YADA, Line 1
> User 'dbcc_user01' does not have permission to run DBCC CHECKDB for
database
> 'yada'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> I found this proc to check the role, and dbcc's aren't listed here...but I
> am not sure if they would be...
>
> 1> sp_dbfixedrolepermission db_backupoperator
> 2> go
> DbFixedRole
> Permission
> ----
--
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
> I then granted the user dbo...and of course then he can do the dbcc's.
> Thanks for any info!|||In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
can be run but does not list which ones.
Andrew J. Kelly SQL MVP
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:ud5VUY1yEHA.3552@.TK2MSFTNGP10.phx.gbl...
> Which manual and which DBCC commands does it say should work?
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "Chris" <Chris@.discussions.microsoft.com> wrote in message
> news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
> database
> --
>|||Which manual says that? It's not correct.
In your example of executing dbcc checkdb, if you look up
the permissions section of this command in books online, it
will indicate that only sysadmins and db_owners can execute
this.
The fixed database role db_backupoperator can issue backup
statements for the current database. Not much more with that
role.
-Sue
On Mon, 15 Nov 2004 09:28:02 -0800, "Chris"
<Chris@.discussions.microsoft.com> wrote:
>Not sure...but the manual says that a user with the db_backupoperator role
>should be able to issue the dbcc commands. So I created a user, added the
>role, and he cannot issue any dbcc commands. I even logged out and logged
>back in without any success.
>This is what I get:
>1> dbcc checkdb(yada)
>2> go
>Msg 7983, Level 14, State 8, Server YADA, Line 1
>User 'dbcc_user01' does not have permission to run DBCC CHECKDB for databas
e
>'yada'.
>DBCC execution completed. If DBCC printed error messages, contact your
>system administrator.
>
>I found this proc to check the role, and dbcc's aren't listed here...but I
>am not sure if they would be...
>
>1> sp_dbfixedrolepermission db_backupoperator
>2> go
> DbFixedRole
> Permission
>----
--
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
>I then granted the user dbo...and of course then he can do the dbcc's.
>Thanks for any info!|||I just found the page you are referring to - it's not too
well documented is it.
I think the only dbcc that role can execute is checkcatalog
- as well as checkpoint and backup statements. .
-Sue
On Mon, 15 Nov 2004 16:09:15 -0500, "Andrew J. Kelly"
<sqlmvpnooospam@.shadhawk.com> wrote:
>In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
>can be run but does not list which ones.sql
should be able to issue the dbcc commands. So I created a user, added the
role, and he cannot issue any dbcc commands. I even logged out and logged
back in without any success.
This is what I get:
1> dbcc checkdb(yada)
2> go
Msg 7983, Level 14, State 8, Server YADA, Line 1
User 'dbcc_user01' does not have permission to run DBCC CHECKDB for database
'yada'.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
I found this proc to check the role, and dbcc's aren't listed here...but I
am not sure if they would be...
1> sp_dbfixedrolepermission db_backupoperator
2> go
DbFixedRole
Permission
----
--
-- --
db_backupoperator
BACKUP DATABASE
db_backupoperator
BACKUP LOG
db_backupoperator
CHECKPOINT
I then granted the user dbo...and of course then he can do the dbcc's.
Thanks for any info!Which manual and which DBCC commands does it say should work?
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Chris" <Chris@.discussions.microsoft.com> wrote in message
news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
> Not sure...but the manual says that a user with the db_backupoperator role
> should be able to issue the dbcc commands. So I created a user, added the
> role, and he cannot issue any dbcc commands. I even logged out and logged
> back in without any success.
> This is what I get:
> 1> dbcc checkdb(yada)
> 2> go
> Msg 7983, Level 14, State 8, Server YADA, Line 1
> User 'dbcc_user01' does not have permission to run DBCC CHECKDB for
database
> 'yada'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> I found this proc to check the role, and dbcc's aren't listed here...but I
> am not sure if they would be...
>
> 1> sp_dbfixedrolepermission db_backupoperator
> 2> go
> DbFixedRole
> Permission
> ----
--
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
> I then granted the user dbo...and of course then he can do the dbcc's.
> Thanks for any info!|||In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
can be run but does not list which ones.
Andrew J. Kelly SQL MVP
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:ud5VUY1yEHA.3552@.TK2MSFTNGP10.phx.gbl...
> Which manual and which DBCC commands does it say should work?
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "Chris" <Chris@.discussions.microsoft.com> wrote in message
> news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
> database
> --
>|||Which manual says that? It's not correct.
In your example of executing dbcc checkdb, if you look up
the permissions section of this command in books online, it
will indicate that only sysadmins and db_owners can execute
this.
The fixed database role db_backupoperator can issue backup
statements for the current database. Not much more with that
role.
-Sue
On Mon, 15 Nov 2004 09:28:02 -0800, "Chris"
<Chris@.discussions.microsoft.com> wrote:
>Not sure...but the manual says that a user with the db_backupoperator role
>should be able to issue the dbcc commands. So I created a user, added the
>role, and he cannot issue any dbcc commands. I even logged out and logged
>back in without any success.
>This is what I get:
>1> dbcc checkdb(yada)
>2> go
>Msg 7983, Level 14, State 8, Server YADA, Line 1
>User 'dbcc_user01' does not have permission to run DBCC CHECKDB for databas
e
>'yada'.
>DBCC execution completed. If DBCC printed error messages, contact your
>system administrator.
>
>I found this proc to check the role, and dbcc's aren't listed here...but I
>am not sure if they would be...
>
>1> sp_dbfixedrolepermission db_backupoperator
>2> go
> DbFixedRole
> Permission
>----
--
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
>I then granted the user dbo...and of course then he can do the dbcc's.
>Thanks for any info!|||I just found the page you are referring to - it's not too
well documented is it.
I think the only dbcc that role can execute is checkcatalog
- as well as checkpoint and backup statements. .
-Sue
On Mon, 15 Nov 2004 16:09:15 -0500, "Andrew J. Kelly"
<sqlmvpnooospam@.shadhawk.com> wrote:
>In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
>can be run but does not list which ones.sql
db_backupoperator cannot issue dbcc commands
Not sure...but the manual says that a user with the db_backupoperator role
should be able to issue the dbcc commands. So I created a user, added the
role, and he cannot issue any dbcc commands. I even logged out and logged
back in without any success.
This is what I get:
1> dbcc checkdb(yada)
2> go
Msg 7983, Level 14, State 8, Server YADA, Line 1
User 'dbcc_user01' does not have permission to run DBCC CHECKDB for database
'yada'.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
I found this proc to check the role, and dbcc's aren't listed here...but I
am not sure if they would be...
1> sp_dbfixedrolepermission db_backupoperator
2> go
DbFixedRole
Permission
----
-- --
db_backupoperator
BACKUP DATABASE
db_backupoperator
BACKUP LOG
db_backupoperator
CHECKPOINT
I then granted the user dbo...and of course then he can do the dbcc's.
Thanks for any info!Which manual and which DBCC commands does it say should work?
--
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Chris" <Chris@.discussions.microsoft.com> wrote in message
news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
> Not sure...but the manual says that a user with the db_backupoperator role
> should be able to issue the dbcc commands. So I created a user, added the
> role, and he cannot issue any dbcc commands. I even logged out and logged
> back in without any success.
> This is what I get:
> 1> dbcc checkdb(yada)
> 2> go
> Msg 7983, Level 14, State 8, Server YADA, Line 1
> User 'dbcc_user01' does not have permission to run DBCC CHECKDB for
database
> 'yada'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> I found this proc to check the role, and dbcc's aren't listed here...but I
> am not sure if they would be...
>
> 1> sp_dbfixedrolepermission db_backupoperator
> 2> go
> DbFixedRole
> Permission
> ----
--
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
> I then granted the user dbo...and of course then he can do the dbcc's.
> Thanks for any info!|||In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
can be run but does not list which ones.
--
Andrew J. Kelly SQL MVP
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:ud5VUY1yEHA.3552@.TK2MSFTNGP10.phx.gbl...
> Which manual and which DBCC commands does it say should work?
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "Chris" <Chris@.discussions.microsoft.com> wrote in message
> news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
>> Not sure...but the manual says that a user with the db_backupoperator
>> role
>> should be able to issue the dbcc commands. So I created a user, added
>> the
>> role, and he cannot issue any dbcc commands. I even logged out and
>> logged
>> back in without any success.
>> This is what I get:
>> 1> dbcc checkdb(yada)
>> 2> go
>> Msg 7983, Level 14, State 8, Server YADA, Line 1
>> User 'dbcc_user01' does not have permission to run DBCC CHECKDB for
> database
>> 'yada'.
>> DBCC execution completed. If DBCC printed error messages, contact your
>> system administrator.
>>
>> I found this proc to check the role, and dbcc's aren't listed here...but
>> I
>> am not sure if they would be...
>>
>> 1> sp_dbfixedrolepermission db_backupoperator
>> 2> go
>> DbFixedRole
>> Permission
>> ----
> --
>> -- --
>> db_backupoperator
>> BACKUP DATABASE
>> db_backupoperator
>> BACKUP LOG
>> db_backupoperator
>> CHECKPOINT
>>
>> I then granted the user dbo...and of course then he can do the dbcc's.
>> Thanks for any info!
>|||Which manual says that? It's not correct.
In your example of executing dbcc checkdb, if you look up
the permissions section of this command in books online, it
will indicate that only sysadmins and db_owners can execute
this.
The fixed database role db_backupoperator can issue backup
statements for the current database. Not much more with that
role.
-Sue
On Mon, 15 Nov 2004 09:28:02 -0800, "Chris"
<Chris@.discussions.microsoft.com> wrote:
>Not sure...but the manual says that a user with the db_backupoperator role
>should be able to issue the dbcc commands. So I created a user, added the
>role, and he cannot issue any dbcc commands. I even logged out and logged
>back in without any success.
>This is what I get:
>1> dbcc checkdb(yada)
>2> go
>Msg 7983, Level 14, State 8, Server YADA, Line 1
>User 'dbcc_user01' does not have permission to run DBCC CHECKDB for database
>'yada'.
>DBCC execution completed. If DBCC printed error messages, contact your
>system administrator.
>
>I found this proc to check the role, and dbcc's aren't listed here...but I
>am not sure if they would be...
>
>1> sp_dbfixedrolepermission db_backupoperator
>2> go
> DbFixedRole
> Permission
>----
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
>I then granted the user dbo...and of course then he can do the dbcc's.
>Thanks for any info!|||I just found the page you are referring to - it's not too
well documented is it.
I think the only dbcc that role can execute is checkcatalog
- as well as checkpoint and backup statements. .
-Sue
On Mon, 15 Nov 2004 16:09:15 -0500, "Andrew J. Kelly"
<sqlmvpnooospam@.shadhawk.com> wrote:
>In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
>can be run but does not list which ones.
should be able to issue the dbcc commands. So I created a user, added the
role, and he cannot issue any dbcc commands. I even logged out and logged
back in without any success.
This is what I get:
1> dbcc checkdb(yada)
2> go
Msg 7983, Level 14, State 8, Server YADA, Line 1
User 'dbcc_user01' does not have permission to run DBCC CHECKDB for database
'yada'.
DBCC execution completed. If DBCC printed error messages, contact your
system administrator.
I found this proc to check the role, and dbcc's aren't listed here...but I
am not sure if they would be...
1> sp_dbfixedrolepermission db_backupoperator
2> go
DbFixedRole
Permission
----
-- --
db_backupoperator
BACKUP DATABASE
db_backupoperator
BACKUP LOG
db_backupoperator
CHECKPOINT
I then granted the user dbo...and of course then he can do the dbcc's.
Thanks for any info!Which manual and which DBCC commands does it say should work?
--
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Chris" <Chris@.discussions.microsoft.com> wrote in message
news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
> Not sure...but the manual says that a user with the db_backupoperator role
> should be able to issue the dbcc commands. So I created a user, added the
> role, and he cannot issue any dbcc commands. I even logged out and logged
> back in without any success.
> This is what I get:
> 1> dbcc checkdb(yada)
> 2> go
> Msg 7983, Level 14, State 8, Server YADA, Line 1
> User 'dbcc_user01' does not have permission to run DBCC CHECKDB for
database
> 'yada'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> I found this proc to check the role, and dbcc's aren't listed here...but I
> am not sure if they would be...
>
> 1> sp_dbfixedrolepermission db_backupoperator
> 2> go
> DbFixedRole
> Permission
> ----
--
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
> I then granted the user dbo...and of course then he can do the dbcc's.
> Thanks for any info!|||In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
can be run but does not list which ones.
--
Andrew J. Kelly SQL MVP
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:ud5VUY1yEHA.3552@.TK2MSFTNGP10.phx.gbl...
> Which manual and which DBCC commands does it say should work?
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> "Chris" <Chris@.discussions.microsoft.com> wrote in message
> news:9A83EC25-BECC-4E86-B615-858EF58BF661@.microsoft.com...
>> Not sure...but the manual says that a user with the db_backupoperator
>> role
>> should be able to issue the dbcc commands. So I created a user, added
>> the
>> role, and he cannot issue any dbcc commands. I even logged out and
>> logged
>> back in without any success.
>> This is what I get:
>> 1> dbcc checkdb(yada)
>> 2> go
>> Msg 7983, Level 14, State 8, Server YADA, Line 1
>> User 'dbcc_user01' does not have permission to run DBCC CHECKDB for
> database
>> 'yada'.
>> DBCC execution completed. If DBCC printed error messages, contact your
>> system administrator.
>>
>> I found this proc to check the role, and dbcc's aren't listed here...but
>> I
>> am not sure if they would be...
>>
>> 1> sp_dbfixedrolepermission db_backupoperator
>> 2> go
>> DbFixedRole
>> Permission
>> ----
> --
>> -- --
>> db_backupoperator
>> BACKUP DATABASE
>> db_backupoperator
>> BACKUP LOG
>> db_backupoperator
>> CHECKPOINT
>>
>> I then granted the user dbo...and of course then he can do the dbcc's.
>> Thanks for any info!
>|||Which manual says that? It's not correct.
In your example of executing dbcc checkdb, if you look up
the permissions section of this command in books online, it
will indicate that only sysadmins and db_owners can execute
this.
The fixed database role db_backupoperator can issue backup
statements for the current database. Not much more with that
role.
-Sue
On Mon, 15 Nov 2004 09:28:02 -0800, "Chris"
<Chris@.discussions.microsoft.com> wrote:
>Not sure...but the manual says that a user with the db_backupoperator role
>should be able to issue the dbcc commands. So I created a user, added the
>role, and he cannot issue any dbcc commands. I even logged out and logged
>back in without any success.
>This is what I get:
>1> dbcc checkdb(yada)
>2> go
>Msg 7983, Level 14, State 8, Server YADA, Line 1
>User 'dbcc_user01' does not have permission to run DBCC CHECKDB for database
>'yada'.
>DBCC execution completed. If DBCC printed error messages, contact your
>system administrator.
>
>I found this proc to check the role, and dbcc's aren't listed here...but I
>am not sure if they would be...
>
>1> sp_dbfixedrolepermission db_backupoperator
>2> go
> DbFixedRole
> Permission
>----
> -- --
> db_backupoperator
> BACKUP DATABASE
> db_backupoperator
> BACKUP LOG
> db_backupoperator
> CHECKPOINT
>
>I then granted the user dbo...and of course then he can do the dbcc's.
>Thanks for any info!|||I just found the page you are referring to - it's not too
well documented is it.
I think the only dbcc that role can execute is checkcatalog
- as well as checkpoint and backup statements. .
-Sue
On Mon, 15 Nov 2004 16:09:15 -0500, "Andrew J. Kelly"
<sqlmvpnooospam@.shadhawk.com> wrote:
>In BOL 2000 under roles (roles-SQL Server, overview) it states that DBCC's
>can be run but does not list which ones.
Wednesday, March 7, 2012
DB name not in sysfiles
This command:
dbcc shrinkfile(ABC2_Log,10)
yields:
"Could not locate file 'ABC2_Log' in sysfiles."
Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
shows the name of the DB as "ABC". I think that might be the problem.
However, this command:
update sysfiles
set name = 'ABC2_Log' where name = 'ABC_Log
yields:
"Ad hoc updates to system catalogs are not enabled"
Not sure if my solution of modifing sysfiles is a correct one or not. Any
help or insight would be appreciated.
Bottom line is i really need to truncate the LOG file. It's almost filled up
the hard drive.
Don
SQL 2000Are you in the right database when you execute the command? Also, what version?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
> This command:
> dbcc shrinkfile(ABC2_Log,10)
> yields:
> "Could not locate file 'ABC2_Log' in sysfiles."
> Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
> shows the name of the DB as "ABC". I think that might be the problem.
> However, this command:
> update sysfiles
> set name = 'ABC2_Log' where name = 'ABC_Log
> yields:
> "Ad hoc updates to system catalogs are not enabled"
> Not sure if my solution of modifing sysfiles is a correct one or not. Any
> help or insight would be appreciated.
> Bottom line is i really need to truncate the LOG file. It's almost filled up
> the hard drive.
> Don
> SQL 2000
>|||yes, I'm in the right DB. SQL 2000
Don
"Tibor Karaszi" wrote:
> Are you in the right database when you execute the command? Also, what version?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
> > This command:
> >
> > dbcc shrinkfile(ABC2_Log,10)
> >
> > yields:
> >
> > "Could not locate file 'ABC2_Log' in sysfiles."
> >
> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
> > shows the name of the DB as "ABC". I think that might be the problem.
> >
> > However, this command:
> >
> > update sysfiles
> > set name = 'ABC2_Log' where name = 'ABC_Log
> >
> > yields:
> >
> > "Ad hoc updates to system catalogs are not enabled"
> >
> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
> > help or insight would be appreciated.
> >
> > Bottom line is i really need to truncate the LOG file. It's almost filled up
> > the hard drive.
> >
> > Don
> > SQL 2000
> >
> >
>|||Compare the logical names in sysfiles to what you have in master..sysaltfiles.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
news:B2745B8E-813E-4150-8977-9A775EA677EA@.microsoft.com...
> yes, I'm in the right DB. SQL 2000
> Don
>
> "Tibor Karaszi" wrote:
>> Are you in the right database when you execute the command? Also, what version?
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
>> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
>> > This command:
>> >
>> > dbcc shrinkfile(ABC2_Log,10)
>> >
>> > yields:
>> >
>> > "Could not locate file 'ABC2_Log' in sysfiles."
>> >
>> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
>> > shows the name of the DB as "ABC". I think that might be the problem.
>> >
>> > However, this command:
>> >
>> > update sysfiles
>> > set name = 'ABC2_Log' where name = 'ABC_Log
>> >
>> > yields:
>> >
>> > "Ad hoc updates to system catalogs are not enabled"
>> >
>> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
>> > help or insight would be appreciated.
>> >
>> > Bottom line is i really need to truncate the LOG file. It's almost filled up
>> > the hard drive.
>> >
>> > Don
>> > SQL 2000
>> >
>> >
>>|||master..sysaltfile
ABC_Data,C:\path\ABC_Data.MDF
ABC_Log,C:\path\ABC_Log.LDF
ABC_Data,C:\path\ABC2.mdf
ABC_Log,C:\path\ABC2_log.ldf
ABC..sysfiles
ABC_Data,C:\path\ABC_Data.MDF
ABC_Log ,C:\path\ABC_Log.LDF
ABC2..sysfiles
ABC_Data,C:\path\ABC2.mdf
ABC_Log,C:\path\ABC2_log.ldf
"Tibor Karaszi" wrote:
> Compare the logical names in sysfiles to what you have in master..sysaltfiles.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> news:B2745B8E-813E-4150-8977-9A775EA677EA@.microsoft.com...
> > yes, I'm in the right DB. SQL 2000
> >
> > Don
> >
> >
> > "Tibor Karaszi" wrote:
> >
> >> Are you in the right database when you execute the command? Also, what version?
> >>
> >> --
> >> Tibor Karaszi, SQL Server MVP
> >> http://www.karaszi.com/sqlserver/default.asp
> >> http://sqlblog.com/blogs/tibor_karaszi
> >>
> >>
> >> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> >> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
> >> > This command:
> >> >
> >> > dbcc shrinkfile(ABC2_Log,10)
> >> >
> >> > yields:
> >> >
> >> > "Could not locate file 'ABC2_Log' in sysfiles."
> >> >
> >> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
> >> > shows the name of the DB as "ABC". I think that might be the problem.
> >> >
> >> > However, this command:
> >> >
> >> > update sysfiles
> >> > set name = 'ABC2_Log' where name = 'ABC_Log
> >> >
> >> > yields:
> >> >
> >> > "Ad hoc updates to system catalogs are not enabled"
> >> >
> >> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
> >> > help or insight would be appreciated.
> >> >
> >> > Bottom line is i really need to truncate the LOG file. It's almost filled up
> >> > the hard drive.
> >> >
> >> > Don
> >> > SQL 2000
> >> >
> >> >
> >>
> >>
>|||I'd use ALTER DATABASE to set a desired logical filenames, avoid duplication between databases (just
in case this is what confuses SQL Server) then try again.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
news:9310BC2F-3B76-40BA-99B9-E8B6FA5751ED@.microsoft.com...
> master..sysaltfile
> ABC_Data,C:\path\ABC_Data.MDF
> ABC_Log,C:\path\ABC_Log.LDF
> ABC_Data,C:\path\ABC2.mdf
> ABC_Log,C:\path\ABC2_log.ldf
> ABC..sysfiles
> ABC_Data,C:\path\ABC_Data.MDF
>
> ABC_Log ,C:\path\ABC_Log.LDF
>
> ABC2..sysfiles
> ABC_Data,C:\path\ABC2.mdf
>
> ABC_Log,C:\path\ABC2_log.ldf
>
>
> "Tibor Karaszi" wrote:
>> Compare the logical names in sysfiles to what you have in master..sysaltfiles.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
>> news:B2745B8E-813E-4150-8977-9A775EA677EA@.microsoft.com...
>> > yes, I'm in the right DB. SQL 2000
>> >
>> > Don
>> >
>> >
>> > "Tibor Karaszi" wrote:
>> >
>> >> Are you in the right database when you execute the command? Also, what version?
>> >>
>> >> --
>> >> Tibor Karaszi, SQL Server MVP
>> >> http://www.karaszi.com/sqlserver/default.asp
>> >> http://sqlblog.com/blogs/tibor_karaszi
>> >>
>> >>
>> >> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
>> >> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
>> >> > This command:
>> >> >
>> >> > dbcc shrinkfile(ABC2_Log,10)
>> >> >
>> >> > yields:
>> >> >
>> >> > "Could not locate file 'ABC2_Log' in sysfiles."
>> >> >
>> >> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
>> >> > shows the name of the DB as "ABC". I think that might be the problem.
>> >> >
>> >> > However, this command:
>> >> >
>> >> > update sysfiles
>> >> > set name = 'ABC2_Log' where name = 'ABC_Log
>> >> >
>> >> > yields:
>> >> >
>> >> > "Ad hoc updates to system catalogs are not enabled"
>> >> >
>> >> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
>> >> > help or insight would be appreciated.
>> >> >
>> >> > Bottom line is i really need to truncate the LOG file. It's almost filled up
>> >> > the hard drive.
>> >> >
>> >> > Don
>> >> > SQL 2000
>> >> >
>> >> >
>> >>
>> >>
>>|||Worked like a million!!
THANKS
Don
"Tibor Karaszi" wrote:
> I'd use ALTER DATABASE to set a desired logical filenames, avoid duplication between databases (just
> in case this is what confuses SQL Server) then try again.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> news:9310BC2F-3B76-40BA-99B9-E8B6FA5751ED@.microsoft.com...
> > master..sysaltfile
> > ABC_Data,C:\path\ABC_Data.MDF
> > ABC_Log,C:\path\ABC_Log.LDF
> > ABC_Data,C:\path\ABC2.mdf
> > ABC_Log,C:\path\ABC2_log.ldf
> >
> > ABC..sysfiles
> > ABC_Data,C:\path\ABC_Data.MDF
> >
> >
> > ABC_Log ,C:\path\ABC_Log.LDF
> >
> >
> >
> > ABC2..sysfiles
> > ABC_Data,C:\path\ABC2.mdf
> >
> >
> > ABC_Log,C:\path\ABC2_log.ldf
> >
> >
> >
> >
> > "Tibor Karaszi" wrote:
> >
> >> Compare the logical names in sysfiles to what you have in master..sysaltfiles.
> >>
> >> --
> >> Tibor Karaszi, SQL Server MVP
> >> http://www.karaszi.com/sqlserver/default.asp
> >> http://sqlblog.com/blogs/tibor_karaszi
> >>
> >>
> >> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> >> news:B2745B8E-813E-4150-8977-9A775EA677EA@.microsoft.com...
> >> > yes, I'm in the right DB. SQL 2000
> >> >
> >> > Don
> >> >
> >> >
> >> > "Tibor Karaszi" wrote:
> >> >
> >> >> Are you in the right database when you execute the command? Also, what version?
> >> >>
> >> >> --
> >> >> Tibor Karaszi, SQL Server MVP
> >> >> http://www.karaszi.com/sqlserver/default.asp
> >> >> http://sqlblog.com/blogs/tibor_karaszi
> >> >>
> >> >>
> >> >> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> >> >> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
> >> >> > This command:
> >> >> >
> >> >> > dbcc shrinkfile(ABC2_Log,10)
> >> >> >
> >> >> > yields:
> >> >> >
> >> >> > "Could not locate file 'ABC2_Log' in sysfiles."
> >> >> >
> >> >> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
> >> >> > shows the name of the DB as "ABC". I think that might be the problem.
> >> >> >
> >> >> > However, this command:
> >> >> >
> >> >> > update sysfiles
> >> >> > set name = 'ABC2_Log' where name = 'ABC_Log
> >> >> >
> >> >> > yields:
> >> >> >
> >> >> > "Ad hoc updates to system catalogs are not enabled"
> >> >> >
> >> >> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
> >> >> > help or insight would be appreciated.
> >> >> >
> >> >> > Bottom line is i really need to truncate the LOG file. It's almost filled up
> >> >> > the hard drive.
> >> >> >
> >> >> > Don
> >> >> > SQL 2000
> >> >> >
> >> >> >
> >> >>
> >> >>
> >>
> >>
>
dbcc shrinkfile(ABC2_Log,10)
yields:
"Could not locate file 'ABC2_Log' in sysfiles."
Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
shows the name of the DB as "ABC". I think that might be the problem.
However, this command:
update sysfiles
set name = 'ABC2_Log' where name = 'ABC_Log
yields:
"Ad hoc updates to system catalogs are not enabled"
Not sure if my solution of modifing sysfiles is a correct one or not. Any
help or insight would be appreciated.
Bottom line is i really need to truncate the LOG file. It's almost filled up
the hard drive.
Don
SQL 2000Are you in the right database when you execute the command? Also, what version?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
> This command:
> dbcc shrinkfile(ABC2_Log,10)
> yields:
> "Could not locate file 'ABC2_Log' in sysfiles."
> Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
> shows the name of the DB as "ABC". I think that might be the problem.
> However, this command:
> update sysfiles
> set name = 'ABC2_Log' where name = 'ABC_Log
> yields:
> "Ad hoc updates to system catalogs are not enabled"
> Not sure if my solution of modifing sysfiles is a correct one or not. Any
> help or insight would be appreciated.
> Bottom line is i really need to truncate the LOG file. It's almost filled up
> the hard drive.
> Don
> SQL 2000
>|||yes, I'm in the right DB. SQL 2000
Don
"Tibor Karaszi" wrote:
> Are you in the right database when you execute the command? Also, what version?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
> > This command:
> >
> > dbcc shrinkfile(ABC2_Log,10)
> >
> > yields:
> >
> > "Could not locate file 'ABC2_Log' in sysfiles."
> >
> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
> > shows the name of the DB as "ABC". I think that might be the problem.
> >
> > However, this command:
> >
> > update sysfiles
> > set name = 'ABC2_Log' where name = 'ABC_Log
> >
> > yields:
> >
> > "Ad hoc updates to system catalogs are not enabled"
> >
> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
> > help or insight would be appreciated.
> >
> > Bottom line is i really need to truncate the LOG file. It's almost filled up
> > the hard drive.
> >
> > Don
> > SQL 2000
> >
> >
>|||Compare the logical names in sysfiles to what you have in master..sysaltfiles.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
news:B2745B8E-813E-4150-8977-9A775EA677EA@.microsoft.com...
> yes, I'm in the right DB. SQL 2000
> Don
>
> "Tibor Karaszi" wrote:
>> Are you in the right database when you execute the command? Also, what version?
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
>> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
>> > This command:
>> >
>> > dbcc shrinkfile(ABC2_Log,10)
>> >
>> > yields:
>> >
>> > "Could not locate file 'ABC2_Log' in sysfiles."
>> >
>> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
>> > shows the name of the DB as "ABC". I think that might be the problem.
>> >
>> > However, this command:
>> >
>> > update sysfiles
>> > set name = 'ABC2_Log' where name = 'ABC_Log
>> >
>> > yields:
>> >
>> > "Ad hoc updates to system catalogs are not enabled"
>> >
>> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
>> > help or insight would be appreciated.
>> >
>> > Bottom line is i really need to truncate the LOG file. It's almost filled up
>> > the hard drive.
>> >
>> > Don
>> > SQL 2000
>> >
>> >
>>|||master..sysaltfile
ABC_Data,C:\path\ABC_Data.MDF
ABC_Log,C:\path\ABC_Log.LDF
ABC_Data,C:\path\ABC2.mdf
ABC_Log,C:\path\ABC2_log.ldf
ABC..sysfiles
ABC_Data,C:\path\ABC_Data.MDF
ABC_Log ,C:\path\ABC_Log.LDF
ABC2..sysfiles
ABC_Data,C:\path\ABC2.mdf
ABC_Log,C:\path\ABC2_log.ldf
"Tibor Karaszi" wrote:
> Compare the logical names in sysfiles to what you have in master..sysaltfiles.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> news:B2745B8E-813E-4150-8977-9A775EA677EA@.microsoft.com...
> > yes, I'm in the right DB. SQL 2000
> >
> > Don
> >
> >
> > "Tibor Karaszi" wrote:
> >
> >> Are you in the right database when you execute the command? Also, what version?
> >>
> >> --
> >> Tibor Karaszi, SQL Server MVP
> >> http://www.karaszi.com/sqlserver/default.asp
> >> http://sqlblog.com/blogs/tibor_karaszi
> >>
> >>
> >> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> >> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
> >> > This command:
> >> >
> >> > dbcc shrinkfile(ABC2_Log,10)
> >> >
> >> > yields:
> >> >
> >> > "Could not locate file 'ABC2_Log' in sysfiles."
> >> >
> >> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
> >> > shows the name of the DB as "ABC". I think that might be the problem.
> >> >
> >> > However, this command:
> >> >
> >> > update sysfiles
> >> > set name = 'ABC2_Log' where name = 'ABC_Log
> >> >
> >> > yields:
> >> >
> >> > "Ad hoc updates to system catalogs are not enabled"
> >> >
> >> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
> >> > help or insight would be appreciated.
> >> >
> >> > Bottom line is i really need to truncate the LOG file. It's almost filled up
> >> > the hard drive.
> >> >
> >> > Don
> >> > SQL 2000
> >> >
> >> >
> >>
> >>
>|||I'd use ALTER DATABASE to set a desired logical filenames, avoid duplication between databases (just
in case this is what confuses SQL Server) then try again.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
news:9310BC2F-3B76-40BA-99B9-E8B6FA5751ED@.microsoft.com...
> master..sysaltfile
> ABC_Data,C:\path\ABC_Data.MDF
> ABC_Log,C:\path\ABC_Log.LDF
> ABC_Data,C:\path\ABC2.mdf
> ABC_Log,C:\path\ABC2_log.ldf
> ABC..sysfiles
> ABC_Data,C:\path\ABC_Data.MDF
>
> ABC_Log ,C:\path\ABC_Log.LDF
>
> ABC2..sysfiles
> ABC_Data,C:\path\ABC2.mdf
>
> ABC_Log,C:\path\ABC2_log.ldf
>
>
> "Tibor Karaszi" wrote:
>> Compare the logical names in sysfiles to what you have in master..sysaltfiles.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
>> news:B2745B8E-813E-4150-8977-9A775EA677EA@.microsoft.com...
>> > yes, I'm in the right DB. SQL 2000
>> >
>> > Don
>> >
>> >
>> > "Tibor Karaszi" wrote:
>> >
>> >> Are you in the right database when you execute the command? Also, what version?
>> >>
>> >> --
>> >> Tibor Karaszi, SQL Server MVP
>> >> http://www.karaszi.com/sqlserver/default.asp
>> >> http://sqlblog.com/blogs/tibor_karaszi
>> >>
>> >>
>> >> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
>> >> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
>> >> > This command:
>> >> >
>> >> > dbcc shrinkfile(ABC2_Log,10)
>> >> >
>> >> > yields:
>> >> >
>> >> > "Could not locate file 'ABC2_Log' in sysfiles."
>> >> >
>> >> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
>> >> > shows the name of the DB as "ABC". I think that might be the problem.
>> >> >
>> >> > However, this command:
>> >> >
>> >> > update sysfiles
>> >> > set name = 'ABC2_Log' where name = 'ABC_Log
>> >> >
>> >> > yields:
>> >> >
>> >> > "Ad hoc updates to system catalogs are not enabled"
>> >> >
>> >> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
>> >> > help or insight would be appreciated.
>> >> >
>> >> > Bottom line is i really need to truncate the LOG file. It's almost filled up
>> >> > the hard drive.
>> >> >
>> >> > Don
>> >> > SQL 2000
>> >> >
>> >> >
>> >>
>> >>
>>|||Worked like a million!!
THANKS
Don
"Tibor Karaszi" wrote:
> I'd use ALTER DATABASE to set a desired logical filenames, avoid duplication between databases (just
> in case this is what confuses SQL Server) then try again.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> news:9310BC2F-3B76-40BA-99B9-E8B6FA5751ED@.microsoft.com...
> > master..sysaltfile
> > ABC_Data,C:\path\ABC_Data.MDF
> > ABC_Log,C:\path\ABC_Log.LDF
> > ABC_Data,C:\path\ABC2.mdf
> > ABC_Log,C:\path\ABC2_log.ldf
> >
> > ABC..sysfiles
> > ABC_Data,C:\path\ABC_Data.MDF
> >
> >
> > ABC_Log ,C:\path\ABC_Log.LDF
> >
> >
> >
> > ABC2..sysfiles
> > ABC_Data,C:\path\ABC2.mdf
> >
> >
> > ABC_Log,C:\path\ABC2_log.ldf
> >
> >
> >
> >
> > "Tibor Karaszi" wrote:
> >
> >> Compare the logical names in sysfiles to what you have in master..sysaltfiles.
> >>
> >> --
> >> Tibor Karaszi, SQL Server MVP
> >> http://www.karaszi.com/sqlserver/default.asp
> >> http://sqlblog.com/blogs/tibor_karaszi
> >>
> >>
> >> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> >> news:B2745B8E-813E-4150-8977-9A775EA677EA@.microsoft.com...
> >> > yes, I'm in the right DB. SQL 2000
> >> >
> >> > Don
> >> >
> >> >
> >> > "Tibor Karaszi" wrote:
> >> >
> >> >> Are you in the right database when you execute the command? Also, what version?
> >> >>
> >> >> --
> >> >> Tibor Karaszi, SQL Server MVP
> >> >> http://www.karaszi.com/sqlserver/default.asp
> >> >> http://sqlblog.com/blogs/tibor_karaszi
> >> >>
> >> >>
> >> >> "donsql22222" <donsql22222@.discussions.microsoft.com> wrote in message
> >> >> news:29968CB2-A525-4507-8C65-3F5D23C49689@.microsoft.com...
> >> >> > This command:
> >> >> >
> >> >> > dbcc shrinkfile(ABC2_Log,10)
> >> >> >
> >> >> > yields:
> >> >> >
> >> >> > "Could not locate file 'ABC2_Log' in sysfiles."
> >> >> >
> >> >> > Initially, I had backed up ABC and restored it as ABC2. Sysfiles on DB ABC2
> >> >> > shows the name of the DB as "ABC". I think that might be the problem.
> >> >> >
> >> >> > However, this command:
> >> >> >
> >> >> > update sysfiles
> >> >> > set name = 'ABC2_Log' where name = 'ABC_Log
> >> >> >
> >> >> > yields:
> >> >> >
> >> >> > "Ad hoc updates to system catalogs are not enabled"
> >> >> >
> >> >> > Not sure if my solution of modifing sysfiles is a correct one or not. Any
> >> >> > help or insight would be appreciated.
> >> >> >
> >> >> > Bottom line is i really need to truncate the LOG file. It's almost filled up
> >> >> > the hard drive.
> >> >> >
> >> >> > Don
> >> >> > SQL 2000
> >> >> >
> >> >> >
> >> >>
> >> >>
> >>
> >>
>
Sunday, February 19, 2012
DB Maint. Plan conversion
Hi,
I am trying to figure out what the exact T-SQL are when running the DB
Maint. Plan
I know SQL Server use DBCC CheckDB, DBCC DBReindex,
but what code it uses for Truncate the space when the file (Data and Log)
size > 50MB in the Maintenance Plan?
Are they using sp_spaceused and then DBCC ShrinkDatabase?
Thanks for any answer
EdYou can use Profiler to find out what is being executed.
It seems that it is something like this:
use [TestDatabase]
go
select ceiling((sum(size) * (8192.0/1024.0)) / 1024.0) from
dbo.sysfiles
go
DBCC shrinkdatabase(N'TestDatabase', 10, TRUNCATEONLY )
go
exec sp_spaceused
go
DBCC SQLPERF(LOGSPACE)
go
Razvan
I am trying to figure out what the exact T-SQL are when running the DB
Maint. Plan
I know SQL Server use DBCC CheckDB, DBCC DBReindex,
but what code it uses for Truncate the space when the file (Data and Log)
size > 50MB in the Maintenance Plan?
Are they using sp_spaceused and then DBCC ShrinkDatabase?
Thanks for any answer
EdYou can use Profiler to find out what is being executed.
It seems that it is something like this:
use [TestDatabase]
go
select ceiling((sum(size) * (8192.0/1024.0)) / 1024.0) from
dbo.sysfiles
go
DBCC shrinkdatabase(N'TestDatabase', 10, TRUNCATEONLY )
go
exec sp_spaceused
go
DBCC SQLPERF(LOGSPACE)
go
Razvan
Tuesday, February 14, 2012
DB error...please help!
Hi
I have a DB running in SQLServer 2000 that has worked fine for ages.
However, a recent data load failed. We check the DB using 'dbcc checkdb'
and it reported errors. We fixed the DB using 'dbcc checkdb
(REPAIR_ALLOW_DATA_LOSS )' and this appeared to fix the problem. However,
the DB has since corrupted twice more within a week. CheckDB run on the
master DB shows no problems.
Error messages:
These have been fairly varied. The error we recieve when doing an update
is:
--
Error -2147467259 - I/O error (bad page ID) detected during read at offset
0x0000001f220000 in file 'd:\mssql\data\[myDBName].mdf'
(This is followed by a whole series of connection failure errors for each
connection attempted during the data upload.)
--
Other error messages include:
--
Server: Msg 3624, Level 20, State 1, Line 1
Location: S:\sql\ntdbms\storeng\drs\include\record.inl:1447
Expression: m_SizeRec > 0 && m_SizeRec <= MAXDATAROW
SPID: 75
Process ID: 824
Connection Broken
--
When we correct the errors using CheckDB, we get the following example
messages (should you wish to read):
Table error: Object ID -1291825152, index ID 12336, page ID (1:74256). The
PageId in the page header = (0:0).
Server: Msg 8909, Level 16, State 1, Line 1
Table error: Object ID 0, index ID 33792, page ID (1:74258). The PageId in
the page header = (0:0).
The error has been repaired.
CHECKDB found 0 allocation errors and 1 consistency errors in table '(Object
ID -1291825152)' (object ID -1291825152).
CHECKDB fixed 0 allocation errors and 1 consistency errors in table '(Object
ID -1291825152)' (object ID -1291825152).
DBCC results for '[myDataBaseName]'.
The error has been repaired.
CHECKDB found 0 allocation errors and 1 consistency errors not associated
with any single object.
CHECKDB fixed 0 allocation errors and 1 consistency errors not associated
with any single object.
Server: Msg 8928, Level 16, State 1, Line 1
Object ID 606625204, index ID 0: Page (1:74256) could not be processed. See
other errors for details.
Server: Msg 8928, Level 16, State 1, Line 1
Object ID 606625204, index ID 0: Page (1:74257) could not be processed. See
other errors for details.
Server: Msg 8928, Level 16, State 1, Line 1
Object ID 606625204, index ID 0: Page (1:74258) could not be processed. See
other errors for details.
Server: Msg 8976, Level 16, State 1, Line 1
Table error: Object ID 606625204, index ID 1. Page (1:74256) was not seen in
the scan although its parent (1:74322) and previous (1:74271) refer to it.
Check any previous errors.
Server: Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 606625204, index ID 1. Index node page (1:74322),
slot 32 refers to child page (1:74257) and previous child (1:74256), but
they were not encountered.
Server: Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 606625204, index ID 1. Index node page (1:74322)
DBCC results for 'accountProducts'.
The error has been repaired.
The error has been repaired.
The error has been repaired.
The error has been repaired.
The error has been repaired.
Server: Msg 8978, Level 16, State 1, Line 1
Table error: Object ID 606625204, index ID 1. Page (1:74259) is missing a
reference from previous page (1:74258). Possible chain linkage problem.
The error has been repaired.
The error has been repaired.
Repair: Page (1:74256) has been deallocated from object ID 606625204, index
ID 0.
Repair: Page (1:74257) has been deallocated from object ID 606625204, index
ID 0.
Repair: Page (1:74258) has been deallocated from object ID 606625204, index
ID 0.
There are 3930517 rows in 64635 pages for object 'accountProducts'.
CHECKDB found 0 allocation errors and 7 consistency errors in table
'accountProducts' (object ID 606625204).
CHECKDB fixed 0 allocation errors and 7 consistency errors in table
'accountProducts' (object ID 606625204).
Server: Msg 8909, Level 16, State 1, Line 1
Table error: Object ID 1312043077, index ID 12341, page ID (1:74257). The
PageId in the page header = (0:1205993552).
There are 7602 rows in 54 pages for object 'crossSellingProducts'.
The error has been repaired.
CHECKDB found 0 allocation errors and 1 consistency errors in table '(Object
ID 1312043077)' (object ID 1312043077).
CHECKDB fixed 0 allocation errors and 1 consistency errors in table '(Object
ID 1312043077)' (object ID 1312043077).
CHECKDB found 0 allocation errors and 10 consistency errors in database
'[myDBName]'.
CHECKDB fixed 0 allocation errors and 10 consistency errors in database
'[myDBName]'.
--
Any ideas what may be the problem? More importantly, what to do about it?
Many thanks in advance!
GriffHello,
After looking at your problem I think its somehow one or
more of your updates is currupting one of your clusters,
in turn its effecting your pages.
Personally I would examine the data closely and try the
50/50 approach, i.e. load in 50% of the data see if there
is an error of not 50% of the remaining data and so on.
I wish I could give you some more help, but please feel
free to email me on (in reverse order)
ku.oc.elcannip@.nalon.retep.
Peter
>--Original Message--
>Hi
>I have a DB running in SQLServer 2000 that has worked
fine for ages.
>However, a recent data load failed. We check the DB
using 'dbcc checkdb'
>and it reported errors. We fixed the DB using 'dbcc
checkdb
>(REPAIR_ALLOW_DATA_LOSS )' and this appeared to fix the
problem. However,
>the DB has since corrupted twice more within a week.
CheckDB run on the
>master DB shows no problems.
>Error messages:
>These have been fairly varied. The error we recieve when
doing an update
>is:
>--
>Error -2147467259 - I/O error (bad page ID) detected
during read at offset
>0x0000001f220000 in file 'd:\mssql\data\[myDBName].mdf'
>(This is followed by a whole series of connection failure
errors for each
>connection attempted during the data upload.)
>--
>Other error messages include:
>--
>Server: Msg 3624, Level 20, State 1, Line 1
>Location:
S:\sql\ntdbms\storeng\drs\include\record.inl:1447
>Expression: m_SizeRec > 0 && m_SizeRec <= MAXDATAROW
>SPID: 75
>Process ID: 824
>Connection Broken
>--
>When we correct the errors using CheckDB, we get the
following example
>messages (should you wish to read):
>Table error: Object ID -1291825152, index ID 12336, page
ID (1:74256). The
>PageId in the page header = (0:0).
>Server: Msg 8909, Level 16, State 1, Line 1
>Table error: Object ID 0, index ID 33792, page ID
(1:74258). The PageId in
>the page header = (0:0).
> The error has been repaired.
>CHECKDB found 0 allocation errors and 1 consistency
errors in table '(Object
>ID -1291825152)' (object ID -1291825152).
>CHECKDB fixed 0 allocation errors and 1 consistency
errors in table '(Object
>ID -1291825152)' (object ID -1291825152).
>DBCC results for '[myDataBaseName]'.
> The error has been repaired.
>CHECKDB found 0 allocation errors and 1 consistency
errors not associated
>with any single object.
>CHECKDB fixed 0 allocation errors and 1 consistency
errors not associated
>with any single object.
>Server: Msg 8928, Level 16, State 1, Line 1
>Object ID 606625204, index ID 0: Page (1:74256) could not
be processed. See
>other errors for details.
>Server: Msg 8928, Level 16, State 1, Line 1
>Object ID 606625204, index ID 0: Page (1:74257) could not
be processed. See
>other errors for details.
>Server: Msg 8928, Level 16, State 1, Line 1
>Object ID 606625204, index ID 0: Page (1:74258) could not
be processed. See
>other errors for details.
>Server: Msg 8976, Level 16, State 1, Line 1
>Table error: Object ID 606625204, index ID 1. Page
(1:74256) was not seen in
>the scan although its parent (1:74322) and previous
(1:74271) refer to it.
>Check any previous errors.
>Server: Msg 8980, Level 16, State 1, Line 1
>Table error: Object ID 606625204, index ID 1. Index node
page (1:74322),
>slot 32 refers to child page (1:74257) and previous child
(1:74256), but
>they were not encountered.
>Server: Msg 8980, Level 16, State 1, Line 1
>Table error: Object ID 606625204, index ID 1. Index node
page (1:74322)
>
>DBCC results for 'accountProducts'.
> The error has been repaired.
> The error has been repaired.
> The error has been repaired.
> The error has been repaired.
> The error has been repaired.
>Server: Msg 8978, Level 16, State 1, Line 1
>Table error: Object ID 606625204, index ID 1. Page
(1:74259) is missing a
>reference from previous page (1:74258). Possible chain
linkage problem.
> The error has been repaired.
> The error has been repaired.
>Repair: Page (1:74256) has been deallocated from object
ID 606625204, index
>ID 0.
>Repair: Page (1:74257) has been deallocated from object
ID 606625204, index
>ID 0.
>Repair: Page (1:74258) has been deallocated from object
ID 606625204, index
>ID 0.
>
>There are 3930517 rows in 64635 pages for
object 'accountProducts'.
>CHECKDB found 0 allocation errors and 7 consistency
errors in table
>'accountProducts' (object ID 606625204).
>CHECKDB fixed 0 allocation errors and 7 consistency
errors in table
>'accountProducts' (object ID 606625204).
>Server: Msg 8909, Level 16, State 1, Line 1
>Table error: Object ID 1312043077, index ID 12341, page
ID (1:74257). The
>PageId in the page header = (0:1205993552).
>There are 7602 rows in 54 pages for
object 'crossSellingProducts'.
> The error has been repaired.
>CHECKDB found 0 allocation errors and 1 consistency
errors in table '(Object
>ID 1312043077)' (object ID 1312043077).
>CHECKDB fixed 0 allocation errors and 1 consistency
errors in table '(Object
>ID 1312043077)' (object ID 1312043077).
>CHECKDB found 0 allocation errors and 10 consistency
errors in database
>'[myDBName]'.
>CHECKDB fixed 0 allocation errors and 10 consistency
errors in database
>'[myDBName]'.
>--
>Any ideas what may be the problem? More importantly,
what to do about it?
>Many thanks in advance!
>Griff
>
>.
>
I have a DB running in SQLServer 2000 that has worked fine for ages.
However, a recent data load failed. We check the DB using 'dbcc checkdb'
and it reported errors. We fixed the DB using 'dbcc checkdb
(REPAIR_ALLOW_DATA_LOSS )' and this appeared to fix the problem. However,
the DB has since corrupted twice more within a week. CheckDB run on the
master DB shows no problems.
Error messages:
These have been fairly varied. The error we recieve when doing an update
is:
--
Error -2147467259 - I/O error (bad page ID) detected during read at offset
0x0000001f220000 in file 'd:\mssql\data\[myDBName].mdf'
(This is followed by a whole series of connection failure errors for each
connection attempted during the data upload.)
--
Other error messages include:
--
Server: Msg 3624, Level 20, State 1, Line 1
Location: S:\sql\ntdbms\storeng\drs\include\record.inl:1447
Expression: m_SizeRec > 0 && m_SizeRec <= MAXDATAROW
SPID: 75
Process ID: 824
Connection Broken
--
When we correct the errors using CheckDB, we get the following example
messages (should you wish to read):
Table error: Object ID -1291825152, index ID 12336, page ID (1:74256). The
PageId in the page header = (0:0).
Server: Msg 8909, Level 16, State 1, Line 1
Table error: Object ID 0, index ID 33792, page ID (1:74258). The PageId in
the page header = (0:0).
The error has been repaired.
CHECKDB found 0 allocation errors and 1 consistency errors in table '(Object
ID -1291825152)' (object ID -1291825152).
CHECKDB fixed 0 allocation errors and 1 consistency errors in table '(Object
ID -1291825152)' (object ID -1291825152).
DBCC results for '[myDataBaseName]'.
The error has been repaired.
CHECKDB found 0 allocation errors and 1 consistency errors not associated
with any single object.
CHECKDB fixed 0 allocation errors and 1 consistency errors not associated
with any single object.
Server: Msg 8928, Level 16, State 1, Line 1
Object ID 606625204, index ID 0: Page (1:74256) could not be processed. See
other errors for details.
Server: Msg 8928, Level 16, State 1, Line 1
Object ID 606625204, index ID 0: Page (1:74257) could not be processed. See
other errors for details.
Server: Msg 8928, Level 16, State 1, Line 1
Object ID 606625204, index ID 0: Page (1:74258) could not be processed. See
other errors for details.
Server: Msg 8976, Level 16, State 1, Line 1
Table error: Object ID 606625204, index ID 1. Page (1:74256) was not seen in
the scan although its parent (1:74322) and previous (1:74271) refer to it.
Check any previous errors.
Server: Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 606625204, index ID 1. Index node page (1:74322),
slot 32 refers to child page (1:74257) and previous child (1:74256), but
they were not encountered.
Server: Msg 8980, Level 16, State 1, Line 1
Table error: Object ID 606625204, index ID 1. Index node page (1:74322)
DBCC results for 'accountProducts'.
The error has been repaired.
The error has been repaired.
The error has been repaired.
The error has been repaired.
The error has been repaired.
Server: Msg 8978, Level 16, State 1, Line 1
Table error: Object ID 606625204, index ID 1. Page (1:74259) is missing a
reference from previous page (1:74258). Possible chain linkage problem.
The error has been repaired.
The error has been repaired.
Repair: Page (1:74256) has been deallocated from object ID 606625204, index
ID 0.
Repair: Page (1:74257) has been deallocated from object ID 606625204, index
ID 0.
Repair: Page (1:74258) has been deallocated from object ID 606625204, index
ID 0.
There are 3930517 rows in 64635 pages for object 'accountProducts'.
CHECKDB found 0 allocation errors and 7 consistency errors in table
'accountProducts' (object ID 606625204).
CHECKDB fixed 0 allocation errors and 7 consistency errors in table
'accountProducts' (object ID 606625204).
Server: Msg 8909, Level 16, State 1, Line 1
Table error: Object ID 1312043077, index ID 12341, page ID (1:74257). The
PageId in the page header = (0:1205993552).
There are 7602 rows in 54 pages for object 'crossSellingProducts'.
The error has been repaired.
CHECKDB found 0 allocation errors and 1 consistency errors in table '(Object
ID 1312043077)' (object ID 1312043077).
CHECKDB fixed 0 allocation errors and 1 consistency errors in table '(Object
ID 1312043077)' (object ID 1312043077).
CHECKDB found 0 allocation errors and 10 consistency errors in database
'[myDBName]'.
CHECKDB fixed 0 allocation errors and 10 consistency errors in database
'[myDBName]'.
--
Any ideas what may be the problem? More importantly, what to do about it?
Many thanks in advance!
GriffHello,
After looking at your problem I think its somehow one or
more of your updates is currupting one of your clusters,
in turn its effecting your pages.
Personally I would examine the data closely and try the
50/50 approach, i.e. load in 50% of the data see if there
is an error of not 50% of the remaining data and so on.
I wish I could give you some more help, but please feel
free to email me on (in reverse order)
ku.oc.elcannip@.nalon.retep.
Peter
>--Original Message--
>Hi
>I have a DB running in SQLServer 2000 that has worked
fine for ages.
>However, a recent data load failed. We check the DB
using 'dbcc checkdb'
>and it reported errors. We fixed the DB using 'dbcc
checkdb
>(REPAIR_ALLOW_DATA_LOSS )' and this appeared to fix the
problem. However,
>the DB has since corrupted twice more within a week.
CheckDB run on the
>master DB shows no problems.
>Error messages:
>These have been fairly varied. The error we recieve when
doing an update
>is:
>--
>Error -2147467259 - I/O error (bad page ID) detected
during read at offset
>0x0000001f220000 in file 'd:\mssql\data\[myDBName].mdf'
>(This is followed by a whole series of connection failure
errors for each
>connection attempted during the data upload.)
>--
>Other error messages include:
>--
>Server: Msg 3624, Level 20, State 1, Line 1
>Location:
S:\sql\ntdbms\storeng\drs\include\record.inl:1447
>Expression: m_SizeRec > 0 && m_SizeRec <= MAXDATAROW
>SPID: 75
>Process ID: 824
>Connection Broken
>--
>When we correct the errors using CheckDB, we get the
following example
>messages (should you wish to read):
>Table error: Object ID -1291825152, index ID 12336, page
ID (1:74256). The
>PageId in the page header = (0:0).
>Server: Msg 8909, Level 16, State 1, Line 1
>Table error: Object ID 0, index ID 33792, page ID
(1:74258). The PageId in
>the page header = (0:0).
> The error has been repaired.
>CHECKDB found 0 allocation errors and 1 consistency
errors in table '(Object
>ID -1291825152)' (object ID -1291825152).
>CHECKDB fixed 0 allocation errors and 1 consistency
errors in table '(Object
>ID -1291825152)' (object ID -1291825152).
>DBCC results for '[myDataBaseName]'.
> The error has been repaired.
>CHECKDB found 0 allocation errors and 1 consistency
errors not associated
>with any single object.
>CHECKDB fixed 0 allocation errors and 1 consistency
errors not associated
>with any single object.
>Server: Msg 8928, Level 16, State 1, Line 1
>Object ID 606625204, index ID 0: Page (1:74256) could not
be processed. See
>other errors for details.
>Server: Msg 8928, Level 16, State 1, Line 1
>Object ID 606625204, index ID 0: Page (1:74257) could not
be processed. See
>other errors for details.
>Server: Msg 8928, Level 16, State 1, Line 1
>Object ID 606625204, index ID 0: Page (1:74258) could not
be processed. See
>other errors for details.
>Server: Msg 8976, Level 16, State 1, Line 1
>Table error: Object ID 606625204, index ID 1. Page
(1:74256) was not seen in
>the scan although its parent (1:74322) and previous
(1:74271) refer to it.
>Check any previous errors.
>Server: Msg 8980, Level 16, State 1, Line 1
>Table error: Object ID 606625204, index ID 1. Index node
page (1:74322),
>slot 32 refers to child page (1:74257) and previous child
(1:74256), but
>they were not encountered.
>Server: Msg 8980, Level 16, State 1, Line 1
>Table error: Object ID 606625204, index ID 1. Index node
page (1:74322)
>
>DBCC results for 'accountProducts'.
> The error has been repaired.
> The error has been repaired.
> The error has been repaired.
> The error has been repaired.
> The error has been repaired.
>Server: Msg 8978, Level 16, State 1, Line 1
>Table error: Object ID 606625204, index ID 1. Page
(1:74259) is missing a
>reference from previous page (1:74258). Possible chain
linkage problem.
> The error has been repaired.
> The error has been repaired.
>Repair: Page (1:74256) has been deallocated from object
ID 606625204, index
>ID 0.
>Repair: Page (1:74257) has been deallocated from object
ID 606625204, index
>ID 0.
>Repair: Page (1:74258) has been deallocated from object
ID 606625204, index
>ID 0.
>
>There are 3930517 rows in 64635 pages for
object 'accountProducts'.
>CHECKDB found 0 allocation errors and 7 consistency
errors in table
>'accountProducts' (object ID 606625204).
>CHECKDB fixed 0 allocation errors and 7 consistency
errors in table
>'accountProducts' (object ID 606625204).
>Server: Msg 8909, Level 16, State 1, Line 1
>Table error: Object ID 1312043077, index ID 12341, page
ID (1:74257). The
>PageId in the page header = (0:1205993552).
>There are 7602 rows in 54 pages for
object 'crossSellingProducts'.
> The error has been repaired.
>CHECKDB found 0 allocation errors and 1 consistency
errors in table '(Object
>ID 1312043077)' (object ID 1312043077).
>CHECKDB fixed 0 allocation errors and 1 consistency
errors in table '(Object
>ID 1312043077)' (object ID 1312043077).
>CHECKDB found 0 allocation errors and 10 consistency
errors in database
>'[myDBName]'.
>CHECKDB fixed 0 allocation errors and 10 consistency
errors in database
>'[myDBName]'.
>--
>Any ideas what may be the problem? More importantly,
what to do about it?
>Many thanks in advance!
>Griff
>
>.
>
Subscribe to:
Posts (Atom)