Freigeben über


TSqlObject.GetScript-Methode

Generates a CREATE script from the objects AST.

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

Syntax

'Declaration
Public Function GetScript As String
'Usage
Dim instance As TSqlObject 
Dim returnValue As String 

returnValue = instance.GetScript()
public string GetScript()
public:
String^ GetScript()
member GetScript : unit -> string
public function GetScript() : String

Rückgabewert

Typ: System.String
DDL Creation script.

Ausnahmen

Ausnahme Bedingung
DacModelException

If TSqlObject is not a top level statement object.

Siehe auch

Verweis

TSqlObject Klasse

Microsoft.SqlServer.Dac.Model-Namespace