Méthode Script
Generates a Transact-SQL script that can be used to re-create the restore operation.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)
Syntaxe
'Déclaration
Public Function Script ( _
server As Server _
) As StringCollection
'Utilisation
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
Paramètres
- server
Type : Microsoft.SqlServer.Management.Smo. . :: . .Server
A Server object that represents the instance of SQL Server that is targeted by the restore operation.
Valeur de retour
Type : System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object value that contains a list of Transact-SQL statements in the script.
Notes
Le script généré contient peut-être des procédures internes non documentées, qui sont nécessaires pour la sortie complète du script.
Voir aussi