How can we help you today? How can we help you today?

Exception During Layout operation in a stored proc

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Invalid 0-based line index: 124. The following error was reported:
Invalid line index: 124.
Parameter name: lineIndex
Actual value was 124. ---> System.ArgumentOutOfRangeException: Invalid line index: 124.
Parameter name: lineIndex
Actual value was 124.
   at _40._1(Int32 , Int32 , _39 )
   at _40._1(Int32 )
   at _40._2(Int32 )
   --- End of inner exception stack trace ---
   at _40._2(Int32 )
   at _40._1(CaretPosition , Boolean )
   at _24..ctor(_40 lines, IScriptProvider provider, CaretPosition current, CaretPosition statementBegin, CaretPosition nextStatement)
   at _24..ctor(_40 lines, IScriptProvider provider, CaretPosition current, CaretPosition statementBegin)
   at _24..ctor(_40 lines, IScriptProvider provider, CaretPosition current)
   at _43.set_CaretPosition(CaretPosition value)
   at _43.InsertIntoScript(String fragment, CaretPosition insertionPosition, CaretPosition caretPosition)
   at _43.ReplaceInScript(String fragment, CaretPosition startInsertionPosition, CaretPosition endInsertionPosition, CaretPosition caretPosition)
   at RedGate.SqlPrompt.Engine.SqlPromptEngine.ReplaceInScript(String fragment, CaretPosition startInsertionPosition, CaretPosition endInsertionPosition, CaretPosition caretPosition)
   at _12.OnChangeLineText(TextLineChange[] pTextLineChange, Int32 fLast)
cneller
0

Comments

1 comment

  • JonathanWatts
    Hi there,

    Thanks for your feedback. Unfortunately it looks like SQL Prompt has reacted badly to the SQL Refactor Lay out. If it is possible can you email the script that you were refactoring at the time to jonathan dot watts at red-gate dot com?

    Regards,

    Jonathan
    JonathanWatts
    0

Add comment

Please sign in to leave a comment.