ISqlServerObjectExplorerService.Execute Method
Executes the given programmability object. A parameter dialog is presented first, followed by the creation of a new connected editor window where the statement is then executed.
Namespace: Microsoft.VisualStudio.Data.Tools
Assembly: Microsoft.VisualStudio.Data.Tools.Design (in Microsoft.VisualStudio.Data.Tools.Design.dll)
Syntax
'Declaration
Sub Execute ( _
connection As SqlConnectionStringBuilder, _
ParamArray name As String() _
)
'Usage
Dim instance As ISqlServerObjectExplorerService
Dim connection As SqlConnectionStringBuilder
Dim name As String()
instance.Execute(connection, name)
void Execute(
SqlConnectionStringBuilder connection,
params string[] name
)
void Execute(
SqlConnectionStringBuilder^ connection,
... array<String^>^ name
)
abstract Execute :
connection:SqlConnectionStringBuilder *
name:string[] -> unit
function Execute(
connection : SqlConnectionStringBuilder,
... name : String[]
)
Parameters
- connection
Type: System.Data.SqlClient.SqlConnectionStringBuilder
The connection information for the execution.
- name
Type: System.String[]
The full name of the object in its individual parts.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If any argument is null. |
ArgumentException | If objectSchema or objectName are empty or contain only white space. |