I need to rtrim() a primary key every time a record is inserted. I tried to make a check constraint like :
@field=rtirm(@field)
and while it did not give me an error it is not trimming my data. The type is Nvarchar. I also tried a rule and custom datatype...The bottom line is I need to make sure that all the data is Rtrim() as it is added. How do I do this?
@field=rtirm(@field)
and while it did not give me an error it is not trimming my data. The type is Nvarchar. I also tried a rule and custom datatype...The bottom line is I need to make sure that all the data is Rtrim() as it is added. How do I do this?