How to Increase Maximum Characters Displayed in SSMS

🛠️Part of the SSMS Complete Guide, installing, configuring and fixing SQL Server Management Studio.

By default, SQL Server Management Studio limits the number of characters displayed per column when using Results to Text. The default limit is 256 characters.

If a query or system stored procedure returns more than that, the output is silently truncated. You get partial results, which is often worse than getting an error.

This post shows when this happens and how to fix it properly.


Why This Happens

The limit applies only when:

  • Query output is set to Results to Text
  • A column exceeds the configured character limit
  • The default SSMS setting is still in place

Results to Grid are not affected. Results to Text are.

DBAs often switch to Results to Text when copying scripts, reviewing metadata, or working with system procedures, which is exactly where truncation becomes a problem.


When You’ll Actually Notice It

This usually comes up when:

  • Running system stored procedures that generate scripts
  • Inspecting dynamic SQL or metadata
  • Working with replication tooling
  • Copying output into change scripts, tickets, or reviews

A common example:
sp_scriptdynamicupdateproc, which generates replication update procedures and routinely exceeds the default limit.


How to Increase the Limit in SSMS

  1. Open SQL Server Management Studio
  2. Go to ToolsOptions
  3. Navigate to Query ResultsSQL ServerResults to Text
  4. Increase Maximum number of characters displayed in each column
    • Set the value to 10000 or 65535 (max)
  5. Click OK

You must open a new query window for the change to take effect.

SSMS Results to Text maximum characters setting

Switching to Results to Text

To use this setting, your query output must be set to Results to Text.

SSMS Results to Text output option

What Truncation Looks Like

When the limit is too low, long text values are cut off without warning.

Truncated text output in SSMS Results to Text

After increasing the limit and re-running the query, the full output is returned.

Results to Grid Has a Separate Limit Too

The 256-character default only affects Results to Text. Results to Grid has its own setting, Maximum Characters Retrieved under Tools → Options → Query Results → SQL Server → Results to Grid, split into Non-XML data and XML data, both defaulting to 65535 already. Grid mode rarely needs adjusting because of this, but if a grid cell is still showing truncated text at 65535 characters, that’s the setting to check, not the Results to Text one covered above.

sqlcmd Has the Same Problem, Different Fix

Running the same query through sqlcmd instead of SSMS hits an equivalent but separate truncation limit, controlled by the -y switch (variable-length data) and -Y switch (fixed-length data), not the SSMS setting above. The SSMS fix only applies inside SSMS, scripts or scheduled jobs invoking sqlcmd directly need their own -y 8000 (or similar) passed on the command line.


Final Notes

This is a client-side SSMS setting, not a SQL Server setting.

If you regularly work with generated scripts, metadata, or system procedures, increasing the Results to Text character limit is a one-time fix that removes a subtle but recurring source of frustration.

Where To Go Next

This page covers one part of working with SSMS. The full reference ties the install, configuration and troubleshooting pieces together.

  • SSMS Complete Guide, installing it, keeping it updated, and fixing it when it misbehaves.
  • DBA Scripts, the SQL Server scripts you will actually run once SSMS is open.

More in this series: Install and Update SQL Server Management Studio (SSMS) · DBA Scripts: Install and Update SSMS via PowerShell · DBA Scripts: Uninstall SSMS via PowerShell

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *