Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes job step log files that have log numbers lower than the specified value.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub DeleteLogs ( _
largerThan As Integer _
)
'Usage
Dim instance As JobStep
Dim largerThan As Integer
instance.DeleteLogs(largerThan)
public void DeleteLogs(
int largerThan
)
public:
void DeleteLogs(
int largerThan
)
member DeleteLogs :
largerThan:int -> unit
public function DeleteLogs(
largerThan : int
)
Parameters
- largerThan
Type: System.Int32
A Int32 value that specifies the log number. Log files that have a lower number are deleted.
Remarks
This method was introduced in SQL Server 2005.
Examples
Scheduling Automatic Administrative Tasks in SQL Server Agent
See Also
Reference
Microsoft.SqlServer.Management.Smo.Agent Namespace