Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Full-text indexing on database in SQL Server 2008?

Tags:

Hi I am looking for a query that is able to find Full text indexing on all tables and columns within a database using SQL Server 2008. Any information or help that can be provided for this is welcomed

like image 629
Tweet Head Avatar asked Apr 29 '13 14:04

Tweet Head


People also ask

How do I get full-text indexes in SQL Server?

On a table that has a full-text index, you can manually disable or re-enable a table for full-text indexing using SQL Server Management Studio. Expand the server group, expand Databases, and expand the database that contains the table you want to enable for full-text indexing.

How do I know if full-text indexing is enabled?

Look at the list of services on the machine. If full text search is installed you'll see a service named SQL Server FullText Search ([instance]) where [instance] will be the name of the SQL instance that it is associated with.

How do I find the full-text catalog in SQL Server?

To get to this screen, go to the database and then go to Storage > Full Text Catalogs, find the full text catalog you want to work with and right click on it and select Properties.


1 Answers

Here's how you get them

SELECT      t.name AS ObjectName,      c.name AS FTCatalogName ,     i.name AS UniqueIdxName,     cl.name AS ColumnName FROM      sys.objects t  INNER JOIN      sys.fulltext_indexes fi  ON      t.[object_id] = fi.[object_id]  INNER JOIN      sys.fulltext_index_columns ic ON      ic.[object_id] = t.[object_id] INNER JOIN     sys.columns cl ON          ic.column_id = cl.column_id     AND ic.[object_id] = cl.[object_id] INNER JOIN      sys.fulltext_catalogs c  ON      fi.fulltext_catalog_id = c.fulltext_catalog_id INNER JOIN      sys.indexes i ON          fi.unique_index_id = i.index_id     AND fi.[object_id] = i.[object_id]; 
like image 117
Sadra Abedinzadeh Avatar answered Oct 25 '22 16:10

Sadra Abedinzadeh