TSqlObject.GetScript Method
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
Return Value
Type: System.String
DDL Creation script.
Exceptions
Exception | Condition |
---|---|
DacModelException | If TSqlObject is not a top level statement object. |