开发者

SQL Server 2008 R2 Calculated Field Issue

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]))
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜