I have a column USER_ID
which I set as a "Computed Column Specification" with a formula of (newid())
. But accidentally, I did not select the "Is Persisted" option.
Meanwhile, I have inserted some of the records in the same table. Now I want to change it to being "Is Persisted".
But while changing process, I get an error
Computed column 'USER_ID' in table 'Tmp_USER_PROFILE' cannot be persisted because the column is non-deterministic.
Please suggest how I can change it from "Is Persisted=No" to "Is Persisted=Yes".