Viewing 6 posts - 1 through 6 (of 6 total)
Declare @sql varchar(250),@retention tinyint
set @retention=2
set @sql='Exec master.dbo.xp_cmdshell ''DIR D:\sql_backup\*'+ substring(convert(varchar(15),getdate(),104),7,4) + substring(convert(varchar(15),getdate(),104),4,2)+substring(convert(varchar(15),getdate()-@retention,104),1,2) +'*.bak /s'''
print @sql
Exec (@sql)
June 22, 2009 at 9:19 am
Declare @sql varchar(250),@retention tinyint
set @retention=2
set @sql='Exec master.dbo.xp_cmdshell ''DIR D:\sql_backup\*'+ substring(convert(varchar(15),getdate(),104),7,4) + substring(convert(varchar(15),getdate(),104),4,2)+substring(convert(varchar(15),getdate()-@retention,104),1,2) +'*.bak /s'''
print @sql
Exec (@sql)
June 22, 2009 at 9:17 am
By memory consumption i mean every time i am getting alerts that SQL SERVER IS CONSUMING 100% OS MEMORY..Very frequently i am getting such alerts.
July 30, 2008 at 5:31 pm
We are changing it bcz of some security reasons in our environment.
Through Enterprise Manager we have already done that number of time.
But i am curious to know if we...
July 24, 2008 at 2:50 pm
Select Database right click-> Tasks -> Shrink database -> click OK
July 11, 2008 at 10:09 am
Viewing 6 posts - 1 through 6 (of 6 total)