{"id":53,"date":"2025-08-15T09:43:18","date_gmt":"2025-08-15T13:43:18","guid":{"rendered":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/?p=53"},"modified":"2025-08-15T10:30:01","modified_gmt":"2025-08-15T14:30:01","slug":"display-line-numbers-in-sql-server-management-studio","status":"publish","type":"post","link":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/2025\/08\/15\/display-line-numbers-in-sql-server-management-studio\/","title":{"rendered":"Display line numbers in SQL Server Management Studio"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-x-large-font-size\">I just watched a great movie about databases. Now I can&#8217;t wait for the SQL.<\/p>\n<\/blockquote>\n\n\n\n<p>If you&#8217;re working with SQL data, SSMS is the GUI of choice. And if you&#8217;re writing T-SQL, you&#8217;re going to encounter errors that need debugging. <br><br>This quick post is about how to show line numbers in the editor.<br><br>By default, line numbers in SSMS aren&#8217;t shown but there is a setting that can change that so you aren&#8217;t debugging in the dark.<br><br>Getting line numbers in SQL Server Management Studio is simple. Go to Tools &gt; Options &gt; Text Editor &gt; expand Transact-SQL. Next, select General and check the Line numbers option.<\/p>\n\n\n\n<p class=\"is-style-default\">You&#8217;re welcome. Until next time&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just watched a great movie about databases. Now I can&#8217;t wait for the SQL. If you&#8217;re working with SQL data, SSMS is the GUI of choice. And if you&#8217;re writing T-SQL, you&#8217;re going to encounter errors that need debugging. This quick post is about how to show line numbers in the editor. By default, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":62,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6,13,15],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-sql","category-sql-server-management-studio"],"jetpack_featured_media_url":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-content\/uploads\/2025\/08\/this-should-show-t-sql-code-in-the-editor-for-example.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":4,"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/posts\/53\/revisions\/65"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/media\/62"}],"wp:attachment":[{"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ceejaysmedia.com\/dotCeeJayS\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}