Condividi tramite


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

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.