共用方式為


Restore.SqlVerifyLatest Method

Definition

Overloads

SqlVerifyLatest(Server, SqlVerifyAction, String)

Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined.

SqlVerifyLatest(Server, String)

Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined.

SqlVerifyLatest(Server, SqlVerifyAction)

Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined.

SqlVerifyLatest(Server)

Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined.

SqlVerifyLatest(Server, SqlVerifyAction, String)

Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined.

public bool SqlVerifyLatest (Microsoft.SqlServer.Management.Smo.Server srv, Microsoft.SqlServer.Management.Smo.SqlVerifyAction sqlVerifyAction, out string errorMessage);
member this.SqlVerifyLatest : Microsoft.SqlServer.Management.Smo.Server * Microsoft.SqlServer.Management.Smo.SqlVerifyAction * string -> bool
Public Function SqlVerifyLatest (srv As Server, sqlVerifyAction As SqlVerifyAction, ByRef errorMessage As String) As Boolean

Parameters

srv
Server

Server to run the operation on.

sqlVerifyAction
SqlVerifyAction

specifies what is the action whose latest results

errorMessage
String

Returns a detailed error message if verification failed.

Returns

true if verification succeeded, false otherwise

Applies to

SqlVerifyLatest(Server, String)

Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined.

public bool SqlVerifyLatest (Microsoft.SqlServer.Management.Smo.Server srv, out string errorMessage);
member this.SqlVerifyLatest : Microsoft.SqlServer.Management.Smo.Server * string -> bool
Public Function SqlVerifyLatest (srv As Server, ByRef errorMessage As String) As Boolean

Parameters

srv
Server

Server to run the operation on.

errorMessage
String

Returns a detailed error message if verification failed.

Returns

true if verification succeeded, false otherwise

Applies to

SqlVerifyLatest(Server, SqlVerifyAction)

Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined.

public bool SqlVerifyLatest (Microsoft.SqlServer.Management.Smo.Server srv, Microsoft.SqlServer.Management.Smo.SqlVerifyAction sqlVerifyAction);
member this.SqlVerifyLatest : Microsoft.SqlServer.Management.Smo.Server * Microsoft.SqlServer.Management.Smo.SqlVerifyAction -> bool
Public Function SqlVerifyLatest (srv As Server, sqlVerifyAction As SqlVerifyAction) As Boolean

Parameters

srv
Server

Server to run the operation on.

sqlVerifyAction
SqlVerifyAction

specifies what is the action whose latest results

Returns

true if verification succeeded, false otherwise

Applies to

SqlVerifyLatest(Server)

Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined.

public bool SqlVerifyLatest (Microsoft.SqlServer.Management.Smo.Server srv);
member this.SqlVerifyLatest : Microsoft.SqlServer.Management.Smo.Server -> bool
Public Function SqlVerifyLatest (srv As Server) As Boolean

Parameters

srv
Server

Server to run the operation on.

Returns

true if verification succeeded, false otherwise

Applies to