Skip to content

Conversation

@VladDBA
Copy link
Contributor

@VladDBA VladDBA commented Mar 2, 2025

Hi Brent!

This PR adds a new parameter @KeepCRLF BIT, default 0, that when set to 1 will stop sp_BlitzCache from stripping CR and LF from the query text.
The way sp_BlitzCache treats tabs and multiple consecutive spaces will not be changed by this new parameter.

Users who have SSMS set to retain CRLF on copy-paste from the grid results* won't have to deal with any potential issues caused by line comments inside the query text.

*Tools>Options>Query Results>SQL Server> Results to Grid> Retain CR/LF on copy or save.

Closes #3611

Copy link
Member

@BrentOzar BrentOzar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request! Makes sense, looks good. Merging into the dev branch, will be in the next release with credit to you in the release notes.

@BrentOzar BrentOzar merged commit ec68e26 into BrentOzarULTD:dev Mar 3, 2025
0 of 3 checks passed
@BrentOzar BrentOzar added this to the 2025-04 Release milestone Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sp_BlitzCache - new parameter to retain CRLF in query text

2 participants