SqlScriptEditorControl Class
SQL Server 2012
Implements SQL script editing. This class implements all execution options of scripts and handles all requests from the menu toolbars.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ContainerControl
System.Windows.Forms.UserControl
ShellWindowPaneUserControl
ScriptEditorControl
Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl
Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ContainerControl
System.Windows.Forms.UserControl
ShellWindowPaneUserControl
ScriptEditorControl
Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl
Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl
Namespace: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly: SQLEditors (in SQLEditors.dll)
The SqlScriptEditorControl type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AccessibilityObject | (Inherited from Control.) |
![]() | AccessibleDefaultActionDescription | (Inherited from Control.) |
![]() | AccessibleDescription | (Inherited from Control.) |
![]() | AccessibleName | (Inherited from Control.) |
![]() | AccessibleRole | (Inherited from Control.) |
![]() | ActiveControl | (Inherited from ContainerControl.) |
![]() | AllowDrop | (Inherited from Control.) |
![]() | Anchor | (Inherited from Control.) |
![]() | AutoScaleDimensions | (Inherited from ContainerControl.) |
![]() | AutoScaleFactor | (Inherited from ContainerControl.) |
![]() | AutoScaleMode | (Inherited from ContainerControl.) |
![]() | AutoScroll | (Inherited from ScrollableControl.) |
![]() | AutoScrollMargin | (Inherited from ScrollableControl.) |
![]() | AutoScrollMinSize | (Inherited from ScrollableControl.) |
![]() | AutoScrollOffset | (Inherited from Control.) |
![]() | AutoScrollPosition | (Inherited from ScrollableControl.) |
![]() | AutoSize | (Inherited from UserControl.) |
![]() | AutoSizeMode | (Inherited from UserControl.) |
![]() | AutoValidate | (Inherited from UserControl.) |
![]() | BackColor | (Inherited from Control.) |
![]() | BackgroundImage | (Inherited from Control.) |
![]() | BackgroundImageLayout | (Inherited from Control.) |
![]() | BindingContext | (Inherited from ContainerControl.) |
![]() | BorderStyle | (Inherited from UserControl.) |
![]() | Bottom | (Inherited from Control.) |
![]() | Bounds | (Inherited from Control.) |
![]() | CanEnableIme | (Inherited from ContainerControl.) |
![]() | CanFocus | (Inherited from Control.) |
![]() | CanRaiseEvents | (Inherited from Control.) |
![]() | CanSelect | (Inherited from Control.) |
![]() | Capture | (Inherited from Control.) |
![]() | CausesValidation | (Inherited from Control.) |
![]() | ClientRectangle | (Inherited from Control.) |
![]() | ClientSize | (Inherited from Control.) |
![]() | CmdUIGuid | Returns GUID that is associated with toolbars and menu items that should automatically be visible when this document window is active. (Overrides ScriptEditorControlCmdUIGuid.) |
![]() | CompanyName | (Inherited from Control.) |
![]() | Connection | Returns parameters in the case where script editor has a current connection. (Inherited from ScriptAndResultsEditorControl.) |
![]() | ConnectionInfoList | Gets connection context for the editor. (Inherited from ScriptAndResultsEditorControl.) |
![]() | Container | (Inherited from Component.) |
![]() | ContainsFocus | (Inherited from Control.) |
![]() | ContextMenu | (Inherited from Control.) |
![]() | ContextMenuStrip | (Inherited from Control.) |
![]() | Controls | (Inherited from Control.) |
![]() | Created | (Inherited from Control.) |
![]() | CreateParams | (Inherited from UserControl.) |
![]() | CurrentAutoScaleDimensions | (Inherited from ContainerControl.) |
![]() | CurrentDB | Gets or sets the database that is current for this script. (Overrides ScriptAndResultsEditorControl.CurrentDB.) |
![]() | Cursor | (Inherited from Control.) |
![]() | DataBindings | (Inherited from Control.) |
![]() | DefaultCursor | (Inherited from Control.) |
![]() | DefaultHelpContext | Gets the keyword that is pushed into the dynamic help window by default when this editor is active. (Overrides ScriptEditorControlDefaultHelpContext.) |
![]() | DefaultImeMode | (Inherited from Control.) |
![]() | DefaultMargin | (Inherited from Control.) |
![]() | DefaultMaximumSize | (Inherited from Control.) |
![]() | DefaultMinimumSize | (Inherited from Control.) |
![]() | DefaultPadding | (Inherited from Control.) |
![]() | DefaultSize | (Inherited from UserControl.) |
![]() | DesignMode | (Inherited from Component.) |
![]() | DisplayRectangle | (Inherited from ScrollableControl.) |
![]() | Disposing | (Inherited from Control.) |
![]() | Dock | (Inherited from Control.) |
![]() | DockPadding | (Inherited from ScrollableControl.) |
![]() | DoubleBuffered | (Inherited from Control.) |
![]() | Enabled | (Inherited from Control.) |
![]() | Events | (Inherited from Component.) |
![]() | Focused | (Inherited from Control.) |
![]() | Font | (Inherited from Control.) |
![]() | FontHeight | (Inherited from Control.) |
![]() | ForeColor | (Inherited from Control.) |
![]() | Handle | (Inherited from Control.) |
![]() | HasChildren | (Inherited from Control.) |
![]() | Height | (Inherited from Control.) |
![]() | HorizontalScroll | (Inherited from ScrollableControl.) |
![]() | HScroll | (Inherited from ScrollableControl.) |
![]() | ImeMode | (Inherited from Control.) |
![]() | ImeModeBase | (Inherited from Control.) |
![]() | InvokeRequired | (Inherited from Control.) |
![]() | IsAccessible | (Inherited from Control.) |
![]() | IsAFedMember | Gets or sets a value that indicates whether the current database is a federation member. (Inherited from ScriptAndResultsEditorControl.) |
![]() | IsConnected | Gets or sets whether the editor control is connected. (Inherited from ScriptAndResultsEditorControl.) |
![]() | IsControlUnderSplitterVisible | Gets a Boolean value that specifies how the window will be resized. (Inherited from ScriptAndResultsEditorControl.) |
![]() | IsDebugging | Gets or sets whether the script is being executed. (Inherited from ScriptAndResultsEditorControl.) |
![]() | IsDisposed | (Inherited from Control.) |
![]() | IsExecuting | Gets or sets whether the script is being executed. (Inherited from ScriptAndResultsEditorControl.) |
![]() | IsHandleCreated | (Inherited from Control.) |
![]() | IsMirrored | (Inherited from Control.) |
![]() | IsScriptEditorActive | Gets a Boolean value that specifies whether the code editor is currently active. (Inherited from ScriptAndResultsEditorControl.) |
![]() | IsSqlCmdMode | Gets or sets the flag that specifies whether SQLCMD mode is set. (Inherited from ScriptAndResultsEditorControl.) |
![]() | IsSqlObjectDocument | Gets a Boolean which determines if the SqlScriptEditorControl is a debugging window. |
![]() | IsWithNumberOfRowsOnStatusBar | Gets a Boolean value that specifies whether the status bar contains a panel for number of fetched rows. (Inherited from ScriptAndResultsEditorControl.) |
![]() | LanguageServiceGUID | Gets the GUID of the language service that should be specified for the Visual Studio editor with the text of the script. (Overrides ScriptEditorControlLanguageServiceGUID.) |
![]() | LayoutEngine | (Inherited from Control.) |
![]() | Left | (Inherited from Control.) |
![]() | Location | (Inherited from Control.) |
![]() | Margin | (Inherited from Control.) |
![]() | MaximumSize | (Inherited from Control.) |
![]() | MinimumSize | (Inherited from Control.) |
![]() | MyOptions | Gets or sets connection options that will be used by this window for execution. |
![]() | Name | (Inherited from Control.) |
![]() | Padding | (Inherited from Control.) |
![]() | Parent | (Inherited from Control.) |
![]() | ParentForm | (Inherited from ContainerControl.) |
![]() | PreferredSize | (Inherited from Control.) |
![]() | ProductName | (Inherited from Control.) |
![]() | ProductVersion | (Inherited from Control.) |
![]() | RecreatingHandle | (Inherited from Control.) |
![]() | Region | (Inherited from Control.) |
![]() | RenderRightToLeft | Obsolete. (Inherited from Control.) |
![]() | ResizeRedraw | (Inherited from Control.) |
![]() | Right | (Inherited from Control.) |
![]() | RightToLeft | (Inherited from Control.) |
![]() | ScaleChildren | (Inherited from Control.) |
![]() | ScriptEditorContextMenuID | Gets the identifier of the context menu that should be shown when user right clicks on script editor. (Overrides ScriptEditorControlScriptEditorContextMenuID.) |
![]() | ShowCurrentResultsBelowSplitter | Gets a Boolean value that indicates whether current query results are shown below the splitter on the tabs on the same level with the query text. (Overrides ScriptAndResultsEditorControl.ShowCurrentResultsBelowSplitter.) |
![]() | ShowFocusCues | (Inherited from Control.) |
![]() | ShowKeyboardCues | (Inherited from Control.) |
![]() | Site | (Inherited from Control.) |
![]() | Size | (Inherited from Control.) |
![]() | SqlCmdVars | Gets or sets a dictionary containing all the variables and their values from sqlcmdvars file in Database projects in Visual Studio. (Inherited from ScriptAndResultsEditorControl.) |
![]() | TabIndex | (Inherited from Control.) |
![]() | TabStop | (Inherited from Control.) |
![]() | Tag | (Inherited from Control.) |
![]() | Text | (Inherited from UserControl.) |
![]() | Top | (Inherited from Control.) |
![]() | TopLevelControl | (Inherited from Control.) |
![]() | UseWaitCursor | (Inherited from Control.) |
![]() | VerticalScroll | (Inherited from ScrollableControl.) |
![]() | Visible | (Inherited from Control.) |
![]() | VScroll | (Inherited from ScrollableControl.) |
![]() | Width | (Inherited from Control.) |
![]() | WindowTarget | (Inherited from Control.) |
Top
| Name | Description | |
|---|---|---|
![]() | AutoSizeChanged | (Inherited from UserControl.) |
![]() | AutoValidateChanged | (Inherited from UserControl.) |
![]() | BackColorChanged | (Inherited from Control.) |
![]() | BackgroundImageChanged | (Inherited from Control.) |
![]() | BackgroundImageLayoutChanged | (Inherited from Control.) |
![]() | BindingContextChanged | (Inherited from Control.) |
![]() | CausesValidationChanged | (Inherited from Control.) |
![]() | ChangeUICues | (Inherited from Control.) |
![]() | Click | (Inherited from Control.) |
![]() | ClientSizeChanged | (Inherited from Control.) |
![]() | ContextMenuChanged | (Inherited from Control.) |
![]() | ContextMenuStripChanged | (Inherited from Control.) |
![]() | ControlAdded | (Inherited from Control.) |
![]() | ControlRemoved | (Inherited from Control.) |
![]() | CursorChanged | (Inherited from Control.) |
![]() | Disposed | (Inherited from Component.) |
![]() | DockChanged | (Inherited from Control.) |
![]() | DoubleClick | (Inherited from Control.) |
![]() | DragDrop | (Inherited from Control.) |
![]() | DragEnter | (Inherited from Control.) |
![]() | DragLeave | (Inherited from Control.) |
![]() | DragOver | (Inherited from Control.) |
![]() | EnabledChanged | (Inherited from Control.) |
![]() | Enter | (Inherited from Control.) |
![]() | FontChanged | (Inherited from Control.) |
![]() | ForeColorChanged | (Inherited from Control.) |
![]() | GiveFeedback | (Inherited from Control.) |
![]() | GotFocus | (Inherited from Control.) |
![]() | HandleCreated | (Inherited from Control.) |
![]() | HandleDestroyed | (Inherited from Control.) |
![]() | HelpRequested | (Inherited from Control.) |
![]() | ImeModeChanged | (Inherited from Control.) |
![]() | Invalidated | (Inherited from Control.) |
![]() | KeyDown | (Inherited from Control.) |
![]() | KeyPress | (Inherited from Control.) |
![]() | KeyUp | (Inherited from Control.) |
![]() | Layout | (Inherited from Control.) |
![]() | Leave | (Inherited from Control.) |
![]() | Load | (Inherited from UserControl.) |
![]() | LocationChanged | (Inherited from Control.) |
![]() | LostFocus | (Inherited from Control.) |
![]() | MarginChanged | (Inherited from Control.) |
![]() | MouseCaptureChanged | (Inherited from Control.) |
![]() | MouseClick | (Inherited from Control.) |
![]() | MouseDoubleClick | (Inherited from Control.) |
![]() | MouseDown | (Inherited from Control.) |
![]() | MouseEnter | (Inherited from Control.) |
![]() | MouseHover | (Inherited from Control.) |
![]() | MouseLeave | (Inherited from Control.) |
![]() | MouseMove | (Inherited from Control.) |
![]() | MouseUp | (Inherited from Control.) |
![]() | MouseWheel | (Inherited from Control.) |
![]() | Move | (Inherited from Control.) |
![]() | NewConnectionForScript | Event that is fired when a user specifies a new connection for the script from the connection dialog box. (Inherited from ScriptAndResultsEditorControl.) |
![]() | PaddingChanged | (Inherited from Control.) |
![]() | Paint | (Inherited from Control.) |
![]() | ParentChanged | (Inherited from Control.) |
![]() | PreviewKeyDown | (Inherited from Control.) |
![]() | QueryAccessibilityHelp | (Inherited from Control.) |
![]() | QueryContinueDrag | (Inherited from Control.) |
![]() | RegionChanged | (Inherited from Control.) |
![]() | Resize | (Inherited from Control.) |
![]() | RightToLeftChanged | (Inherited from Control.) |
![]() | Scroll | (Inherited from ScrollableControl.) |
![]() | SizeChanged | (Inherited from Control.) |
![]() | StyleChanged | (Inherited from Control.) |
![]() | SystemColorsChanged | (Inherited from Control.) |
![]() | TabIndexChanged | (Inherited from Control.) |
![]() | TabStopChanged | (Inherited from Control.) |
![]() | TextChanged | (Inherited from UserControl.) |
![]() | Validated | (Inherited from Control.) |
![]() | Validating | (Inherited from Control.) |
![]() | VisibleChanged | (Inherited from Control.) |
| Name | Description | |
|---|---|---|
![]() | disconnectAfterQuery | If True, disconnects after query executes. |
![]() | executionControlHost | Container for everything but the status bar. Used for layout. |
![]() | fedRootName | Specifies the name of the root federation. (Inherited from ScriptAndResultsEditorControl.) |
![]() | isCloudDatabase | Determines whether SQL Server Management Studio is currently connected to a SQL Azure server. (Inherited from ScriptAndResultsEditorControl.) |
![]() | isFedMemAttrChecked | A Boolean value that indicates whether the federation member attribute is checked. (Inherited from ScriptAndResultsEditorControl.) |
![]() | m_connection | Cached connection that is associated with the window. (Inherited from ScriptAndResultsEditorControl.) |
![]() | m_connectionInfoList | Cached connection info that is used in communication with the connection dialog box. (Inherited from ScriptAndResultsEditorControl.) |
![]() | m_connectionToUse | Connection information that should be applied to the window after it is fully initialized, unless it is stamped with another connection. (Inherited from ScriptAndResultsEditorControl.) |
![]() | m_dtExecBegan | Member to store at the beginning of script execution. (Inherited from ScriptAndResultsEditorControl.) |
![]() | m_scriptSplitter | Splitter to horizontally separate script and other elements. (Inherited from ScriptAndResultsEditorControl.) |
![]() | m_timeElapsedTimer | Timer for updating properties window with elapsed time during query execution. (Inherited from ScriptAndResultsEditorControl.) |
![]() | shardName | Specifies the shard name. (Inherited from ScriptAndResultsEditorControl.) |
![]() | statusBar | Status bar. (Inherited from ScriptAndResultsEditorControl.) |
![]() | sysShardName | Specifies the system shard name. (Inherited from ScriptAndResultsEditorControl.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IVsWindowFrameNotify2OnClose | Either cancels the currently running query or cancels the window closing. (Inherited from ScriptAndResultsEditorControl.) |
![]() ![]() | IContainerControl.ActivateControl | (Inherited from ContainerControl.) |
![]() ![]() | IDropTarget.OnDragDrop | (Inherited from Control.) |
![]() ![]() | IDropTarget.OnDragEnter | (Inherited from Control.) |
![]() ![]() | IDropTarget.OnDragLeave | (Inherited from Control.) |
![]() ![]() | IDropTarget.OnDragOver | (Inherited from Control.) |

