gxh973121

博客园 首页 新随笔 联系 订阅 管理

2009年4月6日 #

摘要: 读查询语句示例:   Declare @count int 1 set @strSql=N'select @a= count(*) from ['+ @tblName + '] where 1=1 '+ @strWhere2 exec sp_executesql @strSql ,N'@a int output',@Count output3 select @Count    要点:1.利用系统存... 阅读全文
posted @ 2009-04-06 11:39 gxh973121 阅读(764) 评论(1) 推荐(0) 编辑

摘要: 在查询分析器中顺序执行以下三步,其中 databasename 为你的数据库文件名 1.清空日志:DUMP TRANSACTION databasename WITH NO_LOG 2.截断事务日志:BACKUP LOG databasename WITH NO_LOG 3.收缩数据库:DBCC SHRINKDATABASE(databasename) --//////... 阅读全文
posted @ 2009-04-06 05:10 gxh973121 阅读(595) 评论(0) 推荐(0) 编辑