Script 方法
Returns a 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 Transact-SQL statement that can be used to execute the referenced backup.