Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)

  • RE: Delete old Backup files using T-sql script

    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)

  • RE: Delete old Backup files using T-sql script

    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)

  • RE: SQL SERVER MEMORY CONSUMPTION PROBLEM

    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.

  • RE: SQL SERVER PORT CHANGE

    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...

  • RE: Regarding database file shrinking

    Select Database right click-> Tasks -> Shrink database -> click OK

  • RE: SQL SERVER 2000 LOG SPACE ISSUE

    Thanks for the kind advise...:)

Viewing 6 posts - 1 through 6 (of 6 total)