/* Developer and Enterprise have the ONLINE = ON option for REBUILD */
IF @defragType = 'REBUILD'
BEGIN
SET @sql = @sql + ' WITH (FILLFACTOR=80'
IF (@edition = 3)
SET @sql = @sql + ', ONLINE = ON'
SET @sql = @sql + ')'
END
IF @partitionCount > 1
SET @sql = @sql + ' PARTITION = ' + CAST(@partitionNumber AS varchar(10))
PRINT(@sql)
EXEC (@SQL)
SET @i = @i + 1
SELECT
@objectId = ObjectId,
@indexId = IndexId,
@recordCount = RecordCount
FROM #FragIndex
WHERE FragIndexId = @i
END
DROP TABLE #FragIndex
END
GO
-- v3.1.1 fix: so we don't get this error:
-- The query has exceeded the maximum number of result sets that can be displayed in the Execution Plan pane. Only the first 250 result sets are displayed in the Execution Plan pane.
SET NOCOUNT ON
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(0,
'None',
'No Text Indexing')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(100,
'Text',
'Text Index the filename and path, plus content of a typical text file')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(200,
'Adobe: Acrobat',
'Text Index the filename and path, plus content using Adobe Acrobat Full (Sorry: not compatible with Adobe Acrobat Reader)')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(300,
'Microsoft: Excel',
'Text Index the filename and path, plus content using Microsoft Excel')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(301,
'Microsoft: PowerPoint',
'Text Index the filename and path, plus content using Microsoft PowerPoint')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(302,
'Microsoft: Word',
'Text Index the filename and path, plus content using Microsoft Word')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(400,
'Binary: Executable',
'Text Index the filename and path, plus Executable content of a binary file (Experimental)')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(401,
'Binary: Document',
'Text Index the filename and path, plus Document content of a binary file (Experimental)')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(500,
'Media',
'Text Index the filename and path')
GO
INSERT INTO [FtsApp] ([FtsAppID],
[FtsAppDesc],
[FtsAppOverview])
VALUES(700,
'iFilter',
'Text Index the filename and path, plus content using the Microsoft iFilter')