How to display more text in SSMS – SQLServerCentral (2024)

Today’s blog post is going to be a short one but can be very helpful if you’re new to SQL Server. From time to time you may find the need to use the text result instead of the default grid result. You can change this by using CTRL-T for text and CTRL-D for grid.

Let’s say you want to view carriage returns in your query results. Grid results may display them as a space, which isn’t all that helpful. In this case, changing to text results will display the text as text with carriage returns and line feeds just like you’d see in a document. Only there’s one problem.

To keep the results readable the maximum number of characters to display for each column has been reduced from 65536 for grid results all the way down to 256 for text results!

Changing this default is very simple and is done via the options dialog. Simply navigate to the Query Results > SQL Server > Results to Text section and you’ll see the “Maximum number of characters displayed in each column:” setting. Change it to what you desire and click “OK”. *A restart of SSMS may be needed to complete the change.

How to display more text in SSMS – SQLServerCentral (1)

Now more or less text should be displayed depending on what you changed the value to.

Enjoy!

How to display more text in SSMS – SQLServerCentral (2)

How to display more text in SSMS – SQLServerCentral (2024)
Top Articles
Latest Posts
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 6306

Rating: 4.3 / 5 (54 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.