TSqlModel.AddObjects Method (String)
Adds objects to the model based on the contents of a TSql Script string. The script should consist of valid TSql DDL statements.
Namespace: Microsoft.SqlServer.Dac.Model
Assembly: Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)
Syntax
'Declaration
Public Sub AddObjects ( _
inputScript As String _
)
'Usage
Dim instance As TSqlModel
Dim inputScript As String
instance.AddObjects(inputScript)
public void AddObjects(
string inputScript
)
public:
void AddObjects(
String^ inputScript
)
member AddObjects :
inputScript:string -> unit
public function AddObjects(
inputScript : String
)
Parameters
- inputScript
Type: System.String
Script containing TSql DDL statements.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the supplied inputScript is null. |
RemotingException | If communication with the TSqlObjectService fails. |