zoukankan      html  css  js  c++  java
  • DBCC--CHECKDB--结果收集

    --由宋沄剑提供

    CREATE TABLE [dbo].[dbcc_history](

    [Error] [int] NULL,

    [Level] [int] NULL,

    [State] [int] NULL,

    [MessageText] [varchar](7000) NULL,

    [RepairLevel] [int] NULL,

    [Status] [int] NULL,

    [DbId] [int] NULL,

    [Id] [int] NULL,

    [IndId] [int] NULL,

    [PartitionID] [int] NULL,

    [AllocUnitID] [int] NULL,

    [File] [int] NULL,

    [Page] [int] NULL,

    [Slot] [int] NULL,

    [RefFile] [int] NULL,

    [RefPage] [int] NULL,

    [RefSlot] [int] NULL,

    [Allocation] [int] NULL,

    [TimeStamp] [datetime] NULL CONSTRAINT [DF_dbcc_history_TimeStamp] DEFAULT (GETDATE())

    ) ON [PRIMARY]

    GO

    INSERT INTO dbcc_history ([Error], [Level], [State], MessageText, RepairLevel, [Status], 

    [DbId], Id, IndId, PartitionId, AllocUnitId, [File], Page, Slot, RefFile, RefPage, 

    RefSlot,Allocation)

    EXEC ('dbcc checkdb(''master'') with tableresults')

  • 相关阅读:
    Python与数据库
    初识matplotlib
    Jquery--实现轮播图
    Juery入门2
    CSS布局方式
    Jquery入门一
    html-DOM了解
    jquery --入门
    JS练习
    kettle 报错汇总
  • 原文地址:https://www.cnblogs.com/TeyGao/p/3518760.html
Copyright © 2011-2022 走看看