I want MY_NAME column to have 4000 chars, I use MSSQL and Oracle. I Oracle it works as I can define
ALTER TABLE MY_TABLE MODIFY MY_NAME VARCHAR2(4000 char);
so it takes exactly 4000 chars, not bytes. If I would write in Oracle:
ALTER TABLE MY_TABLE MODIFY MY_NAME VARCHAR2(4000); -- (missing char word after 4000)
then it would mean 4000 bytes so it would never take 4000 special chars like ü for example because ü takse more than one byte.
For SQL Server I set its length to:
ALTER TABLE MY_TABLE ALTER COLUMN MY_NAME varchar(4000);
It works when I put there 4000 English chars but it doesn't work with special characters 4000 ć characters are too much for this column. How to setup this column to be independent from country / language and let it take maximum 4000 characters?