Last active
August 29, 2015 14:13
-
-
Save nekitozzz/6d9681d90338d48ab31f to your computer and use it in GitHub Desktop.
True if FullTex indexing of database is done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION [dbo].[is_fulltext_indexed]() | |
RETURNS BIT | |
AS | |
BEGIN | |
RETURN | |
CASE | |
WHEN (SELECT COUNT(*) FROM | |
(SELECT | |
FULLTEXTCATALOGPROPERTY(fc.[name],'PopulateStatus') AS PopulateStatus | |
FROM sys.fulltext_catalogs fc) t | |
WHERE t.PopulateStatus <> 0) | |
= 0 THEN 1 | |
ELSE 0 | |
END | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment