Share via


SqlScriptEditorControl.ChangeEditorConnection Method

Sets the new editor connection from parameters.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors (in SQLEditors.dll)

Syntax

'Declaration
Public Shared Sub ChangeEditorConnection ( _
    connectionString As String, _
    databaseName As String _
)
'Usage
Dim connectionString As String 
Dim databaseName As String 

SqlScriptEditorControl.ChangeEditorConnection(connectionString, _
    databaseName)
public static void ChangeEditorConnection(
    string connectionString,
    string databaseName
)
public:
static void ChangeEditorConnection(
    String^ connectionString, 
    String^ databaseName
)
static member ChangeEditorConnection : 
        connectionString:string * 
        databaseName:string -> unit
public static function ChangeEditorConnection(
    connectionString : String, 
    databaseName : String
)

Parameters

  • connectionString
    Type: System.String
    A string value that contains the connection string.
  • databaseName
    Type: System.String
    A string that contains the name of the database.

See Also

Reference

SqlScriptEditorControl Class

Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace