这些东西不是二维表,不然可以
insert into tb 
DBCC SHOWCONTIG('person.person')
来获取,你看看WINFORM有没有什么控件可以整个贴下去
DBCC SHOWCONTIG('person.person')/*
DBCC SHOWCONTIG scanning 'Person' table...
Table: 'Person' (1509580416); index ID: 1, database ID: 5
TABLE level scan performed.
- Pages Scanned................................: 3807
- Extents Scanned..............................: 477
- Extent Switches..............................: 476
- Avg. Pages per Extent........................: 8.0
- Scan Density [Best Count:Actual Count].......: 99.79% [476:477]
- Logical Scan Fragmentation ..................: 0.03%
- Extent Scan Fragmentation ...................: 5.03%
- Avg. Bytes Free per Page.....................: 1156.3
- Avg. Page Density (full).....................: 85.71%
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
*/

解决方案 »

  1.   

    你可以这样,返回结果集,然后进行解析一下就可以,字段的值都有的:DBCC ShowContig(a) WITH TABLEresults
    /*
    ObjectName ObjectId IndexName IndexId Level Pages Rows MinimumRecordSize MaximumRecordSize AverageRecordSize ForwardedRecords Extents ExtentSwitches AverageFreeBytes AveragePageDensity ScanDensity BestCount ActualCount LogicalFragmentation ExtentFragmentation
    a 2111346586 0 0 1 10 61 61 61 0 1 0 7466 7.75883370397826 100 1 1 0 0
    */
      

  2.   

    高端大气,忘了还有with,可以创建一个表,列名和5楼的对应,然后:
    insert into 新建表
    DBCC ShowContig(a) WITH TABLEresults这样数据就进入那个新建表,你前端操作这个表即可