Create a view indexing problems

sql server 2005 finished creating the view, you can build an index, resolve as follows :( Note: View_report new view, Report data table)

1: Run the following statement:

ALTER VIEW [dbo].[View_report] WITH SCHEMABINDING
AS
SELECT ID, UserID, Keyword, Ranking, Type, Url, UpdateTime, KeywordCount, BaiduCount, BaiduMCount, KeywordLen
FROM dbo.Report

 

2: Re-run the following statement:

CREATE UNIQUE CLUSTERED INDEX [vix_id] ON [dbo].[View_report]
(
[ID] 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)
GO

 

3: you can create a full-text index, the index

Red line set up their own, additional default.

After you create a full-text index is available: contains (keyword, 'three') this filter

 

Guess you like

Origin www.cnblogs.com/shiyi2014/p/12606297.html