If you try to type the following code in SSMS 2008:
create table test (a int identity (1, 1))
you'll get an "Object reference not set to an instance of an object"
and the following details (I copied only the first part):
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at RedGate.SqlPrompt.Parser.SqlParser.HasParameters(ITreeNode& nameTail, Int32& paramIndex)
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)
you'll get an "Object reference not set to an instance of an object"
and the following details (I copied only the first part):