惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
F
Fortinet All Blogs
爱范儿
爱范儿
博客园 - Franky
MyScale Blog
MyScale Blog
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
P
Proofpoint News Feed
IT之家
IT之家
宝玉的分享
宝玉的分享
D
DataBreaches.Net
S
SegmentFault 最新的问题
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
M
MIT News - Artificial intelligence
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
雷峰网
雷峰网
Stack Overflow Blog
Stack Overflow Blog
量子位
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - 广思

IIS中加入piwik跟踪代码 注册表中启用对没有标记为安全的 ActiveX 控件进行初始化和脚本运行 安装Qvode后,在IE8的菜单工具中会出现《彩票》 将字符串写入图片 TRUNCATE 删除表内所有记录 Windows Server 2003 SP1本机访问报错-环回检查 通过Object传递参数 SQL Server 镜像部署 使用stsadm.exe工具实现SharePoint网站备份还原 不能打开文件:mk:@MSITStore:路径[cannot open the file mk@MSITstore:路径]解决办法 转 取得 SharePoint 中列表的Guid和列表视图的Guid (List's Guid and List View Guid) 安装Active Directory Tools For SharePoint 后无法添加到页面的原因 DirectoryEntry所有字段对应解释 windows picture and fax viewer 失效 验证配置设置时发生错误,已引发类型为System.Runtime.InteropServices.COMException的异常。其他异常信息:系统找不到指定的路径 Error message when you try to install a SQL Server 2005 service pack or a SQL Server 2005 hotfix package: "Error 29528. The setup has encountered an unexpected error while Setting Internal Properties" Excel With ADO.NET:Cannot modify the design of table ‘xxx′. It is in a read-only database Sql Server备份到远程服务器的另一种方法 查看 MSSQL 中数据表大小的方法
常用MSSQL语句:每个表大小,某个表所有列
广思 · 2008-12-31 · via 博客园 - 广思

1 返回每个表大小信息

   create table tmp (name varchar(50),rows int,reserved varchar(50),
   data varchar(50),index_size varchar(50),unused varchar(50))
   insert into tmp (name,rows,reserved,
   data,index_size,unused) exec sp_msforeachTable @Command1="sp_spaceused '?'"--sp_spaceused 't_vehicle'
   select * from tmp order by data desc
   drop table tmp

2 获取某个表的所有列信息

   select * from syscolumns where id in (select id from sysobjects where name='ceforst')