sql server
exec sp_spaceused [[@objname=]'objname'][,[@updateusage=]'updateusage']
检查数据库空间大小
dbcc showfilestats
统计数据文件的使用情况
dbcc showcontig
检查数据库控件分配情况
dbcc sqlperf(logspace)
查看日志文件的使用情况
相关文档:
表专区
--
复制表及数据(从
userinfo
表复制到新表
b
select
*
into
b
from
UserInfo
--
获取当前数据库中的所有用户表
select * from sysobjects where xtype='U' and category=0
--
获取某一个表的所有字段
......
&nbs ......
程序启动Sql Server其实很简单
代码:
System.ServiceProcess.ServiceController myController =
new System.ServiceProcess.ServiceController("MSSQL$ACCP4444"); //服务名称 找了半天才找到,笨死我完了。在服务上右键属性,能看到
if (myController.CanStop)
{ }
else ......
TITLE: SQL Server 安装程序失败。
------------------------------
SQL Server 安装程序遇到以下错误:
MsiGetProductInfo 无法检索 Product Code 为“{95120000-00B9-0409-0000-0000000FF1CE}”的包的 ProductVersion。错误代码: 1605。。
遇到这个错误时,解决方法如下:
当系统提示如 {95120000-0 ......
看到的一篇关于数据库优化的文章,觉得对自己有帮助,就转帖到这里。温故而知新!
优化数据库的思想及SQL语句优化的原则 [转贴 2005-08-18 14:20:05 ] 发表者: chilizy
......