4

SSMS 2016 changing tabs to spaces when copying from Result Tab (does not matter ctrl+c or drag&drop). For example if execute this code

SELECT 'a' + CHAR(9) + 'b'

then copy text from result tab and paste in any editor it will be space instead tab between 'a' and 'b' characters.

How to prevent this behaviour?

P.S.: Saving result to CSV working properly and saving tab (code 9). Error caused only on copying.

Andrey
  • 143
  • 5

1 Answers1

3

Go to Options and check Retain CR/LF on copy or save.

enter image description here

Paweł Tajs
  • 1,353
  • 8
  • 16