By accident, when I write SQL queries in SSMS 2014, I get a pop-up window in which "Visual Studio encountered an exception." This may be caused by the extension "along with a hint that I can run the application with the / log option and check the ActivityLog.xml file created somewhere in my user AppData directory.
After this popup, IntelliSense stops updating, and turning it on / off has no effect (any errors still underlined by red squiggly lines, etc., including their mouseover popup windows, remain undefined). Note that this happens even without errors in my script.
But this is not a problem, since I get the error "The value is not in the expected range" EVERY TIME I press the BACKSPACE key , although the Delete key works just fine.
This problem was absent until several months after I started using the application.
The workaround so far has been to copy the request to a new request window (immediately working) or wait for it to stop accidentally. Therefore, the problem is isolated from the query window .
Steps to play:
- Enter the SQL code for a while.
, , / / ( SELECT ). , - (, ).
:
- , .
- .
- - ... , AddIns x86 x64 SQL Server.
- Googling - - SSIS
- SSMS /log - , SSMS /log . " " ( ).
, ( , ), , backspace.
- :
- IntelliSense
- SSMS
:
- ( IntelliSense SQL). , .
, , , , - , Google ( SSIS). .
.
. Visual Studio 2013 JavaScript , , , , , , SSMS backspace ( ).
ActivityLog.xml
<entry>
<record>1172</record>
<time>2017/01/16 19:33:02.289</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>
System.ArgumentException: Value does not fall within the expected range.&
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)&
at Microsoft.VisualStudio.NativeMethods.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)&
at RadLangSvc.SqlCompletionSet.GetTextTypedSoFar()&
at RadLangSvc.Source.OnCommand(IVsTextView textView, VSStd2KCmdID command, Char ch)&
at Microsoft.VisualStudio.Package.ViewFilter.HandlePostExec(Guid& guidCmdGroup, UInt32 nCmdId, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut, Boolean bufferWasChanged)&
at Microsoft.VisualStudio.Package.ViewFilter.ExecCommand(Guid& guidCmdGroup, UInt32 nCmdId, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Package.ViewFilter.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& guidCmdGroup, UInt32 nCmdId, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)&
at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(Guid cmdGroup, UInt32 cmdID, Object inParam)&
at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(TextCompositionEventArgs args)&
at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<DispatchTextInputEvents>b__0(KeyProcessor p, TextCompositionEventArgs args)&
at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass1e`1.<Dispatch>b__1a()&
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
</description>
</entry>
:
Microsoft SQL Server Management Studio 12.0.4232.0
Microsoft Analysis Services 12.0.4232.0
Microsoft (MDAC) 6.1.7601.17514
Microsoft MSXML 3.0 5.0 6.0
Microsoft Internet Explorer 9.11.9600.18537
Microsoft .NET Framework 4.0.30319.36373
Operating System 6.1.7601