Why do all RDBMS insist that you say what the maximum length of the text field will be ... why can't he just derive this information from the data that is placed in the database?
I mainly worked with MS SQL Server, but every other database that I know also requires that you set these arbitrary restrictions in your data schema. The reality is that it is not particularly useful or friendly to work because business requirements change all the time, and almost every day some end user tries to put a lot of text in this column.
Does anyone with some in-house knowledge of RDBMS know why we just donβt conclude about the limitations of the data that is stored in the repository? I'm not talking about guessing type information, but guessing the limits of a particular text column.
I mean, there is a reason I don't use nvarchar (max) for every text column in the database.
sql-server sqldatatypes
John leidegren
source share