EXEC sp_msforeachdb 'use ?
IF DB_NAME() NOT IN(''master'',''msdb'',''tempdb'',''model'',
''ReportServer'',''ReportServerTempDB'')
DBCC CheckDB'
IF DB_NAME() NOT IN(''master'',''msdb'',''tempdb'',''model'',
''ReportServer'',''ReportServerTempDB'')
DBCC CheckDB'
No comments:
Post a Comment