SQL Server – Display Row number in Query Editor
Display Row Numbers in Query Editor by default doesn’t display the Row numbers of T-SQL.
To show Row numbers in Query Editor,
- Go to Tools
 - Click on Option
 - Go to Text Editor
 - Then go to Transact-SQL
 - Check the Line Number
 
Hope this is useful for you.

