﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / scheduled task / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 05:38:54 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>Then I would script something. You can use the Windows Scheduled task to run a VBScript as cscript.exe myscript.vbsas the command. You can set up loops to run through all folders, and then files, leaving the last .Bak only.</description><pubDate>Tue, 20 Oct 2009 06:55:29 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>[quote][b]shanila_minnu (10/20/2009)[/b][hr][quote][b]Steve Jones - Editor (10/19/2009)[/b][hr]the name of servers or databases? Are you centralizing backups from multiple servers?VBScript/Powershell might be the easiest way. you can write a script to delete files older than some date.Here's a VBScript sample: [url]http://itknowledgeexchange.techtarget.com/system-administration/vbscript-to-delete-files-in-a-directory-older-than-x-days/[/url][/quote][/quote]ya we are centralizing all the backups to one server</description><pubDate>Tue, 20 Oct 2009 02:50:44 GMT</pubDate><dc:creator>shanila_minnu</dc:creator></item><item><title>RE: scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>[quote][b]Steve Jones - Editor (10/19/2009)[/b][hr]the name of servers or databases? Are you centralizing backups from multiple servers?VBScript/Powershell might be the easiest way. you can write a script to delete files older than some date.Here's a VBScript sample: [url]http://itknowledgeexchange.techtarget.com/system-administration/vbscript-to-delete-files-in-a-directory-older-than-x-days/[/url][/quote]</description><pubDate>Tue, 20 Oct 2009 02:50:09 GMT</pubDate><dc:creator>shanila_minnu</dc:creator></item><item><title>RE: scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>the name of servers or databases? Are you centralizing backups from multiple servers?VBScript/Powershell might be the easiest way. you can write a script to delete files older than some date.Here's a VBScript sample: [url]http://itknowledgeexchange.techtarget.com/system-administration/vbscript-to-delete-files-in-a-directory-older-than-x-days/[/url]</description><pubDate>Mon, 19 Oct 2009 08:50:24 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>[quote][b]bruhaspathy (10/19/2009)[/b][hr]Assuming you have a "BKUP" Directory in Drive K and the backup files are with the extension .bak and you need to delete all files with .bak in that directory.Create a batch file that deletes all the required files.Deleting all files with the extension .bak would need a command such as "DEL K:\BKUP\*.BAK".You need to create the batch file and have it run in a SQL Server Job scheduled daily.[/quote]i have a folder named BACKUp inside that there are many subfolders with the name of servers. so will the command "DEL K:\BKUP\*.BAK" delete all the .BAK file of subfolders</description><pubDate>Mon, 19 Oct 2009 08:31:55 GMT</pubDate><dc:creator>shanila_minnu</dc:creator></item><item><title>RE: scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>There is a task in the maintenance plans that will do this (maintenance cleanup).</description><pubDate>Mon, 19 Oct 2009 08:17:31 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>Assuming you have a "BKUP" Directory in Drive K and the backup files are with the extension .bak and you need to delete all files with .bak in that directory.Create a batch file that deletes all the required files.Deleting all files with the extension .bak would need a command such as "DEL K:\BKUP\*.BAK".You need to create the batch file and have it run in a SQL Server Job scheduled daily.</description><pubDate>Mon, 19 Oct 2009 07:15:43 GMT</pubDate><dc:creator>Bru Medishetty</dc:creator></item><item><title>RE: scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>How are you doing your backups atm, scheduled job or maintenance plans.</description><pubDate>Mon, 19 Oct 2009 06:49:40 GMT</pubDate><dc:creator>Silverfox</dc:creator></item><item><title>scheduled task</title><link>http://www.sqlservercentral.com/Forums/Topic804981-146-1.aspx</link><description>how can i create a scheduled task to delete some backup files from one folder every day...please can you help me wat command i need to write</description><pubDate>Mon, 19 Oct 2009 05:55:18 GMT</pubDate><dc:creator>shanila_minnu</dc:creator></item></channel></rss>