Blog Post

Using a system function as a computed column within a table-value function….

,

Wouldn’t it be nice if SQL Server allowed this functionality? for instance if did the below:-

Image

I get the above error. I know the code can be easily rectified by doing:-

computed column in a table valued function - correct

It just makes the code read bad and perform bad as you would need to add this system function call everywhere you insert into the return table. One line instead of 5 makes more sense to me!

AJF

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating