If you try to type the following code in SSMS 2008:
select HASHBYTES ('MD5', 'test')
you get the following error at every key press while inside the parentheses:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'RedGate.SqlPrompt.Parser.KeywordTerminalNode' to type 'RedGate.SqlPrompt.Parser.IdentifierTerminalNode'.
at RedGate.SqlPrompt.Parser.SqlParser.GetCandidateList(String source, Int32 offset, Boolean caseSensitive)
at RedGate.SqlPrompt.Engine.NewEngine.SqlPrompt4Engine.GetCandidates(Int32 offset)
at RedGate.SqlPrompt.Engine.PromptEngineEmulator.get_GetSuggestions()
at RedGate.SqlPrompt.Engine.PromptEngineEmulator.get_IsWildcardExpansionAvailable()
at RedGate.SQLPrompt.CommonUI.Editor.EditorWindowBase.OnCaretPoitionChanged()
at RedGate.SQLPrompt.CommonVS.Editor.VSEditorWindow.OnTextViewCommandExec(TextViewMonitor sender, EventArgs e)
at RedGate.SQLPrompt.CommonVS.Editor.TextViewMonitor.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
George Palacean
0

Add comment

Please sign in to leave a comment.