Metoda Backup.Script
Zwraca Transact-SQL instrukcja, które mogą być używane do wykonać odwołanie kopii zapasowej.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo
Zestaw: Microsoft.SqlServer.SmoExtended (w Microsoft.SqlServer.SmoExtended.dll)
Składnia
'Deklaracja
Public Function Script ( _
targetServer As Server _
) As String
'Użycie
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
Parametry
- targetServer
Typ: Microsoft.SqlServer.Management.Smo.Server
The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.
Wartość zwracana
Typ: System.String
A Transact-SQL instrukcja, które mogą być używane do wykonać odwołanie kopii zapasowej.