Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VARCHAR(MAX) gets truncated #1052

Closed
Calidus opened this issue Jan 8, 2018 · 6 comments · Fixed by #17785
Closed

VARCHAR(MAX) gets truncated #1052

Calidus opened this issue Jan 8, 2018 · 6 comments · Fixed by #17785

Comments

@Calidus
Copy link

Calidus commented Jan 8, 2018

  • MSSQL Extension Version: 1.3
  • VSCode Version: 1.19
  • OS Version: Win 10

Steps to Reproduce:

  1. SELECT a VARCHAR(MAX) Column with data larger than ~75k characters
@kevcunnane
Copy link
Contributor

@Calidus the default behavior is to truncate long results, but the right solution would be to make this configurable like in SSMS. I believe it's 65K as the current per-column limit.

@erickangMSFT and @benrr101 we have the MaxCharsToStore and MaxXMLCharsToStore setting values in the backend, but neither ops studio nor the vscode-mssql extension seem to expose them. Did we deliberately drop support for this option, or miss putting it through? I think we've seen a few bugs on this topic so we should consider bringing in the option based on user feedback.

@Calidus
Copy link
Author

Calidus commented Jan 8, 2018

@kevcunnane in SSMS you can output directly to a file which gets the user passed any length limits imposed by the UI. This might be a good option to also think about.

@ghost
Copy link

ghost commented Jun 3, 2020

Issue confirmed with v. 1.9.0 (vscode 1.45.1, win10)
This is a bug, not an enhancement!

If for some reason a limit is necessary, it should be configurable in the extension preferences.

@kburtram kburtram added this to the Backlog milestone Aug 27, 2021
@pvvpraveen
Copy link

Is there any possibility to fix this bug in the near future?
Or there are any workarounds?

@derricksouza
Copy link

@kevcunnane This is a bug with no workaround. Look at the same issue marked as a bug in Azure Data Studio and was fixed years ago. microsoft/azuredatastudio#392

@Charles-Gagnon
Copy link
Contributor

@cheenamalhotra FYI, guess this never got ported over to VS Code MSSQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

7 participants