sql server 2005收缩日志
declare @db_name varchar(200) declare @sql varchar(max) declare my_cur cursor for select name from sys.databases where name not in ('master','tempdb','model','msdb') open my_cur fetch next from my_cur
declare @db_name varchar(200) declare @sql varchar(max) declare my_cur cursor for select name from sys.databases where name not in ('master','tempdb','model','msdb') open my_cur fetch next from my_cur