Partager via


Méthode IScriptable.Script

Generates a Transact-SQL script that can be used to re-create the SMO object.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Function Script As StringCollection
'Utilisation
Dim instance As IScriptable 
Dim returnValue As StringCollection 

returnValue = instance.Script()
StringCollection Script()
StringCollection^ Script()
abstract Script : unit -> StringCollection
function Script() : StringCollection

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

Référence

IScriptable Interface

Surcharge Script

Espace de noms Microsoft.SqlServer.Management.Smo