Real line numbers

  • Hi,

    Is there any way to get SSMS to show the actual line number for an error rather

    than the number in relation to the last GO?

    I have a script of 39,000 lines and parsing the query tells me there's a problem near

    the keyword 'AS'

    Msg 156, Level 15, State 1, Line 2

    Incorrect syntax near the keyword 'AS'.

    Bit of a needle in a haystack as you can imagine.

    Dave

  • Double click the error

    It will move the cursor to the specific line


    Madhivanan

    Failing to plan is Planning to fail

  • Madhivanan (2/20/2009)


    Double click the error

    It will move the cursor to the specific line

    Fantastic! That is so useful.

    Regards

    Dave

  • david.gray (2/20/2009)


    Madhivanan (2/20/2009)


    Double click the error

    It will move the cursor to the specific line

    Fantastic! That is so useful.

    Regards

    Dave

    You are welcome 🙂


    Madhivanan

    Failing to plan is Planning to fail

  • also from within SSMS:

    Tools>>Options>>Text Editor

    Expand "All Languages"

    under the "Display" section, there is a semi-gray checkbox...uncheck and check to enforce line numbers for All languages and files.

    Now line numbers appear on the left border of each document/sql you write /open.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply