This one may seem like a no-brainer, but it's probably the most asked question I get while I'm on web meetings with clients. I hear it so often that it makes me wonder why it's not enabled by default. And that question is, "how do I get line numbers on my query windows?". Well, it's just one simple setting... Start with the "Options..." box
...and open the "Text Editor" tab and select "Transact-SQL". There, you will have to click the check box next to "Line numbers"
Click OK, and then... Voila! Now you have your Line Numbers.
Now enjoy your line numbers.