第一步 将数据库转换成 simple 模式 USE master GO ALTER DATABASE 所要删除日志的数据库名 SET RECOVERY SIMPLE WITH NO_WAIT GO 第二步 收缩数据库 USE 所要删除日志的数据库名 GO DBCC SHRINKDATABASE(N'所要删除日志的数据库名') GO 第三步 将数据库转换成原来的模式 USE master GO ALTER DATABASE 所要删除日志的数据库名 SET RECOVERY FULL WITH NO
老外提问: Hi, I have an sql query which takes 8 seconds in the first run. The next run there after takes 0.5 seconds and all consecutive runs take 0.5 seconds. Is the plan getting cached? How do i make this query run in 0.5 second in the first run itself
标题: Microsoft SQL Server 安装程序------------------------------ 有关帮助信息,请单击: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=SQLSetup90&EvtType=28126 --------------------