Compartir a través de


Script Método

Generates a Transact-SQL script that can be used to re-create the restore operation. 

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Sintaxis

'Declaración
Public Function Script ( _
    server As Server _
) As StringCollection
'Uso
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

Parámetros

Valor devuelto

Tipo: System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object value that contains a list of Transact-SQL statements in the script.

Notas

El script generado contiene procedimientos internos sin documentar que son necesarios para una salida completa del script.