I am trying to create a calculated field in one of my database tables, but I keep 开发者_如何学运维getting the error
Error Validating the formula for column FullName
I am not trying to incorporate other calculated fields so this should work.
I'm using SSMS 2008 R2 with a SS2005 back end.
So in the formula field I've tried:
Trim([dbo].[Contact].[FirstName] + ' ' + [dbo].[Contact].[LastName])
and
Trim([FirstName] + ' ' + [LastName])
Not sure what the problem is. Any help would be much appreciated.
Thanks!
~DJ
Try this:
rtrim(ltrim([FirstName] + ' ' + [LastName]))
精彩评论