Display Line Numbers in Sqlserver Management Studio:
Before explain the display line number in sql server management studio. normally the management studio will be
so .for this we are going to add line numbers.Let
us see how to enable or disable the display of line numbers in SQL Server
Management Studio's Query Window.
1.
Open the SQL Server Management Studio. Click Tools -> Options from
the drop down menu as shown in the below image.
2.
In the Options dialog box on the left side panel expand the Text
Editor option and expand Transact-SQL. Next select General
option as shown in the below image.
3.
In the General page's right side panel you need to select the
check box "Line numbers" under the Display section
as shown in the above snippet and click OK to save the changes.
4.
Going forward whenever you open a new query window in SQL Server Management
Studio you will see line numbers displayed. In the below snippet you will see
that line numbers are displayed in the sample T-SQL code. This feature is very
helpful when you need to debug an error in
your T-SQL code,
especially in scenarios when SQL Server mentions that error is found on a
particular line number.
5.
If this feature in not turned and you need to go to a particular line number
press CTRL + G to open Go To Line dialog box;
enter line number and click OK as shown below.
6. To turn off the line number feature in SQL Server Management Studio
you need to navigate to Tools | Options | Text Editor | General |
Display and uncheck the Line Number check box and
click the OK button to save the changes so that next time you open a new query
window in SSMS line numbers will not be displayed
No comments:
Post a Comment