Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing full text catalogs
Message
De
27/04/2008 15:22:47
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation intégral de texte
Divers
Thread ID:
01313368
Message ID:
01313385
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform