About 14,200 results
Open links in new tab
  1. sql server - Understanding varchar (max) 8000 column and why I …

    May 18, 2017 · If n is set to max and the data type is nvarchar, SQL Server returns up to 2^31-1 bytes, which the .Net datareader can interpret to be up to (2^31-1)/2 characters. If n is set to …

  2. What are the current best practices concerning varchar sizing in …

    Jun 28, 2018 · SQL Server will physically limit you to just over 8000 bytes. Using LOB types — VARCHAR(MAX), NVARCHAR(MAX), VARBINARY(MAX), XML, and the deprecated TEXT, …

  3. Are the limits of varchar(8000) and nvarchar(4000) because of the …

    Feb 21, 2022 · Yes. In SQL Server version 7 the 8K page was introduced and varchar (n) max length went from 255 to 8000. The page size before version 7 was 2K, so allowing a varchar to …

  4. sql server - Error converting VARCHAR (MAX) to XML due to "UTF …

    Oct 26, 2020 · I need to dig into a logs table with a schema similar to this: CREATE TABLE t ( id int PRIMARY KEY, data varchar(max) ); Column data stores a XML text received from a web …

  5. sql server - Converting a VARCHAR to VARBINARY - Database ...

    0x9473FBCCBC01AFE and CONVERT to BINARY gives a completely different value 0x3078393437334642434342433031414645 I tried changing the value definition in the …

  6. sql server - What's the difference between varchar (255) and …

    If the values of a column are only going to be <= 255 characters, is there any real difference between using varchar (255) and varchar (max). I realize that varchar(255) has a limit of 255 …

  7. sql server - Should I used varchar (max) or varchar (4000) SPARSE ...

    Jan 29, 2015 · comments varchar(max) NULL -- this is the current column definition comments varchar(4000) SPARSE NULL My current understanding is that in both cases, a NULL value …

  8. t sql - varchar (MAX) text cuts off while going more than 8000 ...

    And this MSDN article discusses execute. In particular: In earlier versions of SQL Server, character strings are limited to 8,000 bytes. This requires concatenating large strings for …

  9. sql server - WHERE Clause Compare VarChar (n) Column

    Dec 7, 2020 · WHERE Clause Compare VarChar (n) Column = VarChar (MAX) Variable Results in Inequality Comparison and Poor Query Performance Ask Question Asked 5 years ago …

  10. how to convert nvarchar (max) or varchar (max) to xml in sql server

    how to convert nvarchar (max) or varchar (max) to xml in sql server Ask Question Asked 1 year, 6 months ago Modified 1 year, 5 months ago