Metodo Script
Generates a Transact-SQL script that can be used to re-create the restore operation.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Sintassi
'Dichiarazione
Public Function Script ( _
server As Server _
) As StringCollection
'Utilizzo
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
Parametri
- server
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .Server
A Server object that represents the instance of SQL Server that is targeted by the restore operation.
Valore restituito
Tipo: System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object value that contains a list of Transact-SQL statements in the script.
Osservazioni
Lo script generato potrebbe contenere procedure interne non documentate, necessarie per generare l'output completo dello script.
Vedere anche