Método Backup.Script
Returns a String containing the Transact-SQL statement that can be used to execute the referenced backup.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (em Microsoft.SqlServer.SmoExtended.dll)
Sintaxe
'Declaração
Public Function Script ( _
targetServer As Server _
) As String
'Uso
Dim instance As Backup
Dim targetServer As Server
Dim returnValue As String
returnValue = instance.Script(targetServer)
public string Script(
Server targetServer
)
public:
String^ Script(
Server^ targetServer
)
member Script :
targetServer:Server -> string
public function Script(
targetServer : Server
) : String
Parâmetros
- targetServer
Tipo: Microsoft.SqlServer.Management.Smo.Server
The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.
Valor de retorno
Tipo: System.String
A String containing theTransact-SQL statement that can be used to execute the referenced backup.
Consulte também
Referência
Namespace Microsoft.SqlServer.Management.Smo
Outros recursos
Fazendo backup e restaurando bancos de dados e logs de transações