Sql-server – What’s the maximum number of characters you can copy from a cell

sql serverssms

If you ctrl + c a cell how many characters do you actually copy?

I'm getting 43679 I was wondering if this is the limit of ctrl c? is this configurable? the real length of the cell is around 160k

  • varchar(max) column
  • MS SQL 2016 ver 13.0.16106.4
  • Query Results -> SQL Server -> Results to Grid -> default 65k and 2mb xml

Best Answer

The maximum number of characters you can render in most SSMS GUI elements is 43,679 (as this search reveals). If you want to copy more, you'll need to either: