I have the following table:
[dbo].[TableName]
(
[created] datetime not null,
[modified] datetime null,
[computedValue] as
(
format([created], 'yyy-MM-dd MM/dd/yyy') +
case when ([modified] is not null)
then
(format([modified], 'yyyy-MM-dd MM/dd/yyyy'))
end
)
And the problem occurs when I try to alter fulltext index on this table.
ALTER FULLTEXT INDEX ON [dbo].[TableName] ADD ([computedValue] LANGUAGE 1033);
In response, I get the following error:
Computed column 'computedValue' cannot be used for full-text search because it is nondeterministic or imprecise nonpersisted computed column.
According to MSDN : https://msdn.microsoft.com/en-us/library/ms181984(v=sql.110).aspx
"All built-in string functions are deterministic." So I`m racking my brain why it says that this column is not deterministic.