Data Browser
- Viewing Site
Sector 23 Code Bank
Logged in as:
Guest
Similar Topics...
SQL times out in web, but not in Management Studio
Specify SQL Query (Command) in Crystal Report
Problems creating a foreign key in Sql Server
SQL Server Rank/Partition
Sql Server 2008 Comma Delimited List
Kill all connections to SQL Server Database
Rename Table Column Name for SQL
Linq to SQL cannot generate DataContext with stored procedure containing a Temporary Table (#Temp
Insert SqlMembershipProvider User using SQL
SQL Server 2008 XML Example
Sql Server Identity Insert
Granting SQL user rights to start a SSIS Job
Sql Server Statistics
sql server date parts
How to convert SQL exceptions to more meaningful exceptions
How to Get all Recent SQL Calls to Database
Restore Mapping from Sql Server User to Login
SQL With Clause Example
How to Truncate a SQL Server DateTime
Deadlocks in Sql Server 2008 R2
string trim in sql server
Testing SQL Code without cache - SQL Server
SQL Server OR Clause Very Slow when Referencing Multiple Tables
Remove orphaned SQL Server Replication Publications
SQL Server 2008 will not shrink transaction log
mysql max_allowed_packet exceeded
MySql Backslashes
Syntax error in TextHeader of StoredProcedure (SqlServer 2005)
Generic Audit of SQL Table
SQL Server Very Slow Filter on Bit
Sql Server 2008 varbinary(max) performance bug
Bulk Delete Many SQL Rows in Loop
SQL - distance between two coordinates
How to Update Statistics on a SQL Table
How to create a new database in SQL Server
MySQL Workbench export Fails with Connect Error
SQL - Convert DateTime to Local Time from UTC
Convert SQL DateTime to UTC
SQL exception thrown from stored procedure does not raise exception in C#
SQL Server Query to get Latest Backup Date
Link to File on Local Server from TreeView Web Page
Dynamically Build Template Column as a Reusable Server Control
DesignMode is always false in a Custom Server Control
SSRS Parameter default value is blank when deployed to server
.NET Upload Excel or CSV file to Server as DataSet or DataTable
How to get unique ClientId in Custom .NET Server Control
How to Log Off Windows Server 2012 with a mouse
Unable save Web Server Authentication Settings in Visual Studio 2019
VS 2008 Port changing in solution file
Connect BIDS VS 2008 TO TFS 2010
How to Delete Text Templating Service
Insert Image to PDA database
Restore a database from Standby / Read-Only
Determine what users are in a group on a database
MSDEPLOY : error : BACKUP_FAILED
XML Files are too large
Get VSS Files by Date (VSS 8.0)
Upload Multiple Files ASP.NET 4.0, Using HTML5 Input File and/or Drop Target
Fixing Directory.GetFiles to return exact match on extension only
C:\windows\temp filling up with large cab files
TFS Copy Files Step skips Dot Files
SQL Server 2008 Maintenance Cleanup Task to delete database backup files
If you have an automated
SQL
Server
Task to
create
backup
s of your
database
, you may want to automatically
delete
those
that
are old.
To
delete
database
backup
files
regularly
using
a
Maintenance Cleanup Task, follow these
step
s:
Create
a
Maintenance Plan (Database/Management/Maintenance Plans)
Create
a
new
Maintenance Cleanup Task as
part
of
a
Maintenance Plan (drag
a
'Maintenance Cleanup Task' onto the workflow
panel
below the subplans).
Edit
the Maintenance Cleanup Task (
right
click
)
For '
Delete
files
of the following
type
',
select
'
Backup
files
'
For '
File
Location
',
select
'Search
folder
and
delete
files
based on an
extension
' (unless you only have
a
single
backup
file
, but then there is not
a
good reason to
delete
it).
Enter
the
folder
that
contains
your
database
backup
files
(or subfolders) into the '
Folder
'
text
box. This
MUST
end with
a
backslash. If it
does
not, the cleanup task will not
delete
the
database
files
in the
folder
.
Example
: C:\Sql\Backup\
Enter
'bak' as the '
File
Extension
'.
Do
not
include
a
period (.bak) or the
files
will not
delete
. The period
should
not be included.
Check '
Include
first-level subfolders' if each
database
you are backing up is in
a
subfolder within the main
folder
.
To only
delete
old
files
, check the box '
Delete
files
based on the age of
file
at task
run
time
'.
Enter
a
number
and
select
the
time
period, for
example
"2
months
".
Click
OK
to
save
your
change
s, and
add
a
subplan to schedule what day or days your task will
run
.
Save
your
change
s. Test the plan by right-clicking and selecting 'Execute'. (refresh the Maintenance Plans tree if it
does
not
appear
).
Created By: amos
3/25/2013 10:46:16 AM
Updated:
12/16/2014 6:08:45 AM