Does varchar size matter in temporary tables?
-
31-10-2019 - |
Question
There is a debate at my wife's work about just using varchar(255)
for all varchar
fields in temporary tables in stored procedures. Basically, one camp wants to use 255 because it will always work even if the definition changes, and the other camp wants to stick with the size in the source tables for potential performance improvements.
Is the performance camp right? Are there other implications? They are using SQL Server.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange