I have a table with a field that is a varchar(1) and allows null values. If I try and update this to a blank space with syntax
This doesn't set the value to a single space. I checked this with a select statement using the LEN function and that returns the length as 0.
I've looked at trying to use ASCII and CHAR commands to set these but neither seem to work. Does SQL Server just not like single spaces in field names?
If you are wondering why I am doing this it's because we have had a third party applciation developed that checks for a single space in the field.
Mark Davies
Warwickshire County Council
Code:
update table set field=' '
This doesn't set the value to a single space. I checked this with a select statement using the LEN function and that returns the length as 0.
I've looked at trying to use ASCII and CHAR commands to set these but neither seem to work. Does SQL Server just not like single spaces in field names?
If you are wondering why I am doing this it's because we have had a third party applciation developed that checks for a single space in the field.
Mark Davies
Warwickshire County Council