Today I ran into a weird problem. I have a database in SQL Server which is filled with Linq data access layer. Now I’ve got some columns that are of datatype CHAR(100) for example .
When I`m inserting everything seems to be working fine but when I retrieve these values there some sequence of whitespace has been added to the end of each value.
Anyone got an idea?
That is expected behavior.
char [(n)]is a:Perhaps you mean to use
varchar [(n | max)]?