How can I have a full text index on all columns without specifying individual column names via script in SQL Server?
My table has 50 columns, and I'd like the full text index to cover them all.
Can this be done?
How can I have a full text index on all columns without specifying individual column names via script in SQL Server?
My table has 50 columns, and I'd like the full text index to cover them all.
Can this be done?
CREATE FULLTEXT INDEX ON table_name
[ ( { column_name
[ TYPE COLUMN type_column_name ]
[ LANGUAGE language_term ]
[ STATISTICAL_SEMANTICS ]
} [ ,...n]
) ]
KEY INDEX index_name
[ ON <catalog_filegroup_option> ]
[ WITH [ ( ] <with_option> [ ,...n] [ ) ] ]
[;]
<catalog_filegroup_option>::=
{
fulltext_catalog_name
| ( fulltext_catalog_name, FILEGROUP filegroup_name )
| ( FILEGROUP filegroup_name, fulltext_catalog_name )
| ( FILEGROUP filegroup_name )
}
<with_option>::=
{
CHANGE_TRACKING [ = ] { MANUAL | AUTO | OFF [, NO POPULATION ] }
| STOPLIST [ = ] { OFF | SYSTEM | stoplist_name }
| SEARCH PROPERTY LIST [ = ] property_list_name
}
Refer MSDN:
http://msdn.microsoft.com/en-us/library/ms187317.aspx
As well refer this question: