Udostępnij przez


Metoda Restore.Script

Generuje Transact-SQL skryptu, który może służyć do odtworzenia operacji przywracanie.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.SmoExtended (w Microsoft.SqlServer.SmoExtended.dll)

Składnia

'Deklaracja
Public Function Script ( _
    server As Server _
) As StringCollection
'Użycie
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

Parametry

Wartość zwracana

Typ: System.Collections.Specialized.StringCollection
A StringCollection zawiera listę wartości obiektu systemu Transact-SQL instrukcji w script.

Uwagi

Wygenerowany skrypt może zawierać nieudokumentowane, wewnętrzne procedury, które są wymagane do ukończenia generowania danych wyjściowych skryptu.