Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
Public Function Script ( _
targetServer As Server _
) As String
'Usage
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
Parameters
- targetServer
Type: Microsoft.SqlServer.Management.Smo.Server
The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.
Return Value
Type: System.String
A String containing theTransact-SQL statement that can be used to execute the referenced backup.
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace