Quantcast
Viewing all articles
Browse latest Browse all 15889

FullText Search

I'm trying to create a fulltext-index on a view:

create view dbo.vwTrackrsFTSearch with schemabinding
as
select cast(projectno as varchar(30)) as sprojectno, drnumber, agencycode from dbo.Trackrs

CREATE UNIQUE CLUSTERED INDEX idx_VProjectNo ON dbo.vwTrackrsFTSearch (sprojectno)

CREATE FULLTEXT INDEX ON dbo.vwTrackrsFTSearch
(
  sprojectno
 Language 1033,
  drnumber
     Language 1033,
  agencycode
 Language 1033
 )
KEY INDEX idx_VProjectNo
WITH CHANGE_TRACKING AUTO

I'm getting this error:

'idx_VProjectNo' is not a valid index to enforce a full-text search key. A full-text search key must be a unique, non-nullable, single-column index which is not offline, is not defined on a non-deterministic or imprecise nonpersisted computed column, and has maximum size of 900 bytes. Choose another index for the full-text key.

I really need projectno to be the unique key for the view.

Thanks,

tinac99


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>