May 9, 2022 at 7:43 pm
Hello,
Is there any handy script available to find in which are all the database(s) the fulltext search is enabled?
Thanks.
May 10, 2022 at 8:29 am
This was removed by the editor as SPAM
May 10, 2022 at 3:13 pm
SELECT
CASE
WHEN
FULLTEXTSERVICEPROPERTY('IsFullTextInstalled') = 1
THEN
'INSTALLED'
ELSE
'NOT INSTALLED'
END
Can just loop through the DBs
May 10, 2022 at 4:56 pm
That gives the installation of the files for Full-Text search, not if it is in use. Enabled is a strange term. It's essentially always enabled if installed, but might not be in use.
This returns 1 in my database:
SELECT FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')
However, this returns 0 rows, as there is no FTS in use.
SELECT * FROM sys.fulltext_indexes AS fi
May 10, 2022 at 4:59 pm
Thank you so much for all your responses.
But how to find in which database the FTI is setup. Instead of changing the db context every time and running the query? Any handy script to try?
Thanks.
May 11, 2022 at 1:57 am
Databases are separate things.
You could query for select count(*) from sys.fulltext_indexes and run that through a loop or sp_msforeach_db to execute in every database. That's the only way you can tell is by querying every database.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply