sql 技巧
//服务器硬盘分区大小
EXEC master..xp_fixeddrives
//查询当前数据库为所有表名
select Name from sysobjects where xtype='u' and status>=0
//查询当前数据库为存储所有名称
select name as 存储过程名称 from sysobjects where xtype='P' AND 
//获取表名所有字段
SELECT   c.name
FROM       sysobjects   t
JOIN       syscolumns   c
ON           t.id   =   c.id
WHERE     t.name   =   '表名'
//延时
waitfor delay '00:00:07'
//获取xml格式
SELECT TOP 1 * FROM 表名 FOR XML PATH(''),ROOT('root')
                    
                
                
            
        
浙公网安备 33010602011771号