Backup.Script 方法
Returns a String containing the Transact-SQL statement that can be used to execute the referenced backup.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)
語法
'宣告
Public Function Script ( _
targetServer As Server _
) As String
'用途
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
參數
- targetServer
型別:Microsoft.SqlServer.Management.Smo.Server
The Server object that represents the Microsoft SQL Server instance that is the source of the backup operation.
傳回值
型別:System.String
A String containing theTransact-SQL statement that can be used to execute the referenced backup.
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間