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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s