select 'kill ',s.spid, sd.name, * from sys.sysprocesses s
inner join sys.sysdatabases sd on s.dbid=sd.dbid where spid>50
and sd.name='SmartOperation'
sp_readerrorlog
RESTORE database [SmartOperation] with norecovery
select 'kill ',s.spid, sd.name, * from sys.sysprocesses s
inner join sys.sysdatabases sd on s.dbid=sd.dbid where spid>50
and sd.name='SmartOperation'
sp_readerrorlog
RESTORE database [SmartOperation] with norecovery