开发者

SQL Server 2008 R2 Calculated Field Issue

开发者 https://www.devze.com 2023-01-17 08:39 出处:网络
I am trying to create a calculated field in one of my database tables, but I keep 开发者_如何学运维getting the error

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

精彩评论

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