February 20, 2009 at 4:09 am
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
February 20, 2009 at 4:32 am
Double click the error
It will move the cursor to the specific line
Failing to plan is Planning to fail
February 20, 2009 at 4:41 am
Madhivanan (2/20/2009)
Double click the errorIt will move the cursor to the specific line
Fantastic! That is so useful.
Regards
Dave
February 21, 2009 at 2:25 am
david.gray (2/20/2009)
Madhivanan (2/20/2009)
Double click the errorIt will move the cursor to the specific line
Fantastic! That is so useful.
Regards
Dave
You are welcome 🙂
Failing to plan is Planning to fail
February 21, 2009 at 7:04 am
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
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply