Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing full text catalogs
Message
 
 
À
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:
01313451
Vues:
10
>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]
>
Shouldn't be the last one sys.fulltext_catalogs, for consistency ?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform