Script 方法
Generates a Transact-SQL script that can be used to re-create the restore operation.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.SmoExtended(在 Microsoft.SqlServer.SmoExtended.dll 中)
语法
声明
Public Function Script ( _
server As Server _
) As StringCollection
用法
Dim instance As Restore
Dim server As Server
Dim returnValue As StringCollection
returnValue = instance.Script(server)
public StringCollection Script(
Server server
)
public:
StringCollection^ Script(
Server^ server
)
member Script :
server:Server -> StringCollection
public function Script(
server : Server
) : StringCollection
参数
- server
类型:Microsoft.SqlServer.Management.Smo. . :: . .Server
A Server object that represents the instance of SQL Server that is targeted by the restore operation.
返回值
类型:System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object value that contains a list of Transact-SQL statements in the script.
注释
生成的脚本可能包含完成脚本输出所必需的未记录的内部过程。