Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Server.FullTextService Property


Gets the Microsoft Search Full-Text service implementation for the instance of SQL Server.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[SfcObjectAttribute(SfcObjectRelationship.Object, SfcObjectCardinality.One)]
public FullTextService FullTextService { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.FullTextService

A FullTextService object that specifies the full-text service implementation on the instance of SQL Server.

The FullTextService object can be used to change the settings for Microsoft Search. This includes settings such as the default location to store full-text search catalogs.

Visual Basic


$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$db = $srv.Databases.Item("AdventureWorks2012")
$tb = $db.Tables.Item("ProductCategory", "Production")
$ftc = new-object Microsoft.SqlServer.Management.Smo.FullTextCatalog($db, "Test Catalog")
$ftc.IsDefault = $TRUE
$fti = new-object Microsoft.SqlServer.Management.Smo.FullTextIndex($tb)
$ftic = new-object Microsoft.SqlServer.Management.Smo.FullTextIndexColumn($fti, "Name")
$fti.ChangeTracking = [Microsoft.SqlServer.Management.Smo.ChangeTracking]::Automatic
$fti.UniqueIndexName = "AK_ProductCategory_Name"
$fti.CatalogName = "Test Catalog"
Return to top
© 2016 Microsoft