Script-Methode
Generates a Transact-SQL script that can be used to re-create the restore operation.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
Public Function Script ( _
server As Server _
) As StringCollection
'Usage
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
Parameter
- server
Typ: Microsoft.SqlServer.Management.Smo. . :: . .Server
A Server object that represents the instance of SQL Server that is targeted by the restore operation.
Rückgabewert
Typ: System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object value that contains a list of Transact-SQL statements in the script.
Hinweise
Das generierte Skript enthält möglicherweise undokumentierte, interne Prozeduren, die für die vollständige Skriptausgabe erforderlich sind.
Siehe auch