How do I stop SQL 2008 throwing errors when Full Text Search is not installed? -
i calling if (0 = fulltextserviceproperty('isfulltextinstalled')) return; @ beginning of full text search stored procedure. should force stored procedure exit if full text search not installed.
however keep getting typical full-text search not installed, or full-text component cannot loaded error message.
any ideas?
ok. turns out fulltextserviceproperty('isfulltextinstalled') returns different value based on context executed.
in case returned 0 within query executed via sql management studio , 1 within stored procedure.
the correct code use databaseproperty(db_name(), 'isfulltextenabled') returns consistent result regardless of context.
Comments
Post a Comment