Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing full text catalogs
Message
From
27/04/2008 15:22:47
 
General information
Forum:
Microsoft SQL Server
Category:
Full text indexing
Miscellaneous
Thread ID:
01313368
Message ID:
01313385
Views:
8
>Not tested suggestion. You can use sys.fulltext_indexes catalog view to get the list of indexes and drop them. After that you can drop catalogs using list from sys.fulltext_catalogs

Thanks, removing the indexes and then the catalogs is the way to do it.

Basically, the following is the approach used:
IF EXISTS (SELECT * FROM sys.fulltext_indexes fti WHERE fti.object_id = OBJECT_ID(N'[MyTable]'))
ALTER FULLTEXT INDEX ON [MyTable] DISABLE
GO

IF EXISTS (SELECT * FROM sys.fulltext_indexes fti WHERE fti.object_id = OBJECT_ID(N'[MyTable]'))
DROP FULLTEXT INDEX ON [MyTable]
GO

IF EXISTS (SELECT * FROM sysfulltextcatalogs ftc WHERE ftc.name = N'MyTable')
DROP FULLTEXT CATALOG [MyTable]
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform