The following script will check if the full text index has changed in the last 15 minutes and send and email to warn you if it is not populating. Where ftc_default is your full text catalog in your user database.
if (dateadd(ss,FULLTEXTCATALOGPROPERTY(‘ftc_default’,’PopulateCompletionAge’), ‘1/1/1990’) <= dateadd(minute,-15,getdate()))
DECLARE @sub varchar(100), @Comp varchar(1000)
SELECT @sub=cast( dateadd(ss,FULLTEXTCATALOGPROPERTY(‘ftc_default’,’PopulateCompletionAge’), ‘1/1/1990’) as varchar(100));
select @Comp= concat(‘Check to see if full text index is ok, Last update = ‘, @sub,’ ‘, @@servername);
@profile_name = ‘databasemail’,
@recipients = ‘email@example.com’,
@subject = ‘Full Text Index IM1PRODAGL.IM1.LOCAL’,
@body = @Comp
This script was written because in my case I have an index that I knew should be changing in less than a 15 minute interval due to updates on the underlying indexed view.