Workaday Reading

Would using varchar(5000) be bad compared to varchar(255)?

“Yes, varchar(5000) can be worse than varchar(255) if all values will fit into the latter. The reason is that SQL Server will estimate data size and, in turn, memory grants based on the declared (not actual) size of the columns in a table.”


read »

Leave a Reply

Your email address will not be published. Required fields are marked *