1
好的,在創建全文目錄時出現問題。SQL Server 2005 FullText索引''IX_on_an_identity_col不是強制執行全文搜索鍵的有效索引...'
這是我創造我的獨特的非可空等指標與
CREATE UNIQUE NONCLUSTERED INDEX [IX_unique] ON [dbo].[my_table]
(
[my_identity_column] ASC
)
WITH (
PAD_INDEX = OFF,
STATISTICS_NORECOMPUTE = OFF,
SORT_IN_TEMPDB = OFF,
IGNORE_DUP_KEY = OFF,
DROP_EXISTING = OFF,
ONLINE = OFF,
ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON,
FILLFACTOR = 90
) ON [PRIMARY]
它的上一個非空,標識列存儲整數創建列代碼。
運行這個失敗,那麼
EXEC sp_fulltext_table
@tabname='my_table',
@action='create',
@ftcat = 'my_catalog',
@keyname = 'IX_unique'
GO
有了這個消息
'IX_unique' 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.
任何人都得到了線索?我已經google了一下,但人們似乎在做的主要錯誤是使用列名而不是索引名。
感謝, 羅賓