What is the maximum length of a varchar in SQL Server?

  • tags:
Author Profile

author

sandeep

@sandeep

Answers

Varchar fields can be of any size up to a limit, which varies by databases: an Oracle 9i database has a limit of 4000 bytes, a MySQL database has a limit of 65,535 bytes (for the entire row) and Microsoft SQL Server has a limit of 8000 characters (unless varchar(max) is used, which has a maximum storage capacity of 2 gigabytes).


Solution #1

Leave a Comment

message*