You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ REBUILD [ WITH ACCENT_SENSITIVITY = { ON | OFF } ]
37
+
| REORGANIZE
38
+
| AS DEFAULT
39
+
}
40
+
```
41
+
40
42
## Arguments
41
-
*catalog_name*
42
-
Specifies the name of the catalog to be modified. If a catalog with the specified name does not exist, [!INCLUDE[msCoName](../../includes/msconame-md.md)][!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] returns an error and does not perform the ALTER operation.
43
-
44
-
REBUILD
45
-
Tells [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] to rebuild the entire catalog. When a catalog is rebuilt, the existing catalog is deleted and a new catalog is created in its place. All the tables that have full-text indexing references are associated with the new catalog. Rebuilding resets the full-text metadata in the database system tables.
46
-
47
-
WITH ACCENT_SENSITIVITY = {ON|OFF}
48
-
Specifies if the catalog to be altered is accent-sensitive or accent-insensitive for full-text indexing and querying.
49
-
50
-
To determine the current accent-sensitivity property setting of a full-text catalog, use the FULLTEXTCATALOGPROPERTY function with the **accentsensitivity** property value against *catalog_name*. If the function returns '1', the full-text catalog is accent sensitive; if the function returns '0', the catalog is not accent sensitive.
51
-
52
-
The catalog and database default accent sensitivity are the same.
53
-
54
-
REORGANIZE
55
-
Tells [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] to perform a *master merge*, which involves merging the smaller indexes created in the process of indexing into one large index. Merging the full-text index fragments can improve performance and free up disk and memory resources. If there are frequent changes to the full-text catalog, use this command periodically to reorganize the full-text catalog.
56
-
57
-
REORGANIZE also optimizes internal index and catalog structures.
58
-
59
-
Keep in mind that, depending on the amount of indexed data, a master merge may take some time to complete. Master merging a large amount of data can create a long running transaction, delaying truncation of the transaction log during checkpoint. In this case, the transaction log might grow significantly under the full recovery model. As a best practice, ensure that your transaction log contains sufficient space for a long-running transaction before reorganizing a large full-text index in a database that uses the full recovery model. For more information, see [Manage the Size of the Transaction Log File](../../relational-databases/logs/manage-the-size-of-the-transaction-log-file.md).
60
-
61
-
AS DEFAULT
62
-
Specifies that this catalog is the default catalog. When full-text indexes are created with no specified catalogs, the default catalog is used. If there is an existing default full-text catalog, setting this catalog AS DEFAULT will override the existing default.
63
-
64
-
## Permissions
65
-
User must have ALTER permission on the full-text catalog, or be a member of the **db_owner**, **db_ddladmin** fixed database roles, or sysadmin fixed server role.
66
-
67
-
> [!NOTE]
68
-
> To use ALTER FULLTEXT CATALOG AS DEFAULT, the user must have ALTER permission on the full-text catalog and CREATE FULLTEXT CATALOG permission on the database.
69
-
70
-
## Examples
71
-
The following example changes the `accentsensitivity` property of the default full-text catalog `ftCatalog`, which is accent sensitive.
Specifies the name of the catalog to modify. If a catalog with the specified name doesn't exist, [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] returns an error and doesn't perform the `ALTER` operation.
47
+
48
+
#### REBUILD
49
+
50
+
The [!INCLUDE [ssdenoversion-md](../../includes/ssdenoversion-md.md)] rebuilds the entire catalog. When you rebuild a catalog, the existing catalog is deleted and a new catalog is created in its place. All the tables that have full-text indexing references are associated with the new catalog. Rebuilding resets the full-text metadata in the database system tables.
51
+
52
+
#### WITH ACCENT_SENSITIVITY = { ON | OFF }
53
+
54
+
Specifies if the catalog to be altered is accent-sensitive or accent-insensitive for full-text indexing and querying.
55
+
56
+
To determine the current accent-sensitivity property setting of a full-text catalog, use the `FULLTEXTCATALOGPROPERTY` function with the `AccentSensitivity` property value against *catalog_name*.
57
+
58
+
- If the function returns `1`, the full-text catalog is accent sensitive.
59
+
- If the function returns `0`, the catalog isn't accent sensitive.
60
+
61
+
The catalog and database default accent sensitivity are the same.
62
+
63
+
#### REORGANIZE
64
+
65
+
The [!INCLUDE [ssdenoversion-md](../../includes/ssdenoversion-md.md)] performs a *master merge*, which involves merging the smaller indexes created in the process of indexing into one large index. Merging the full-text index fragments can improve performance and free up disk and memory resources. If there are frequent changes to the full-text catalog, use this command periodically to reorganize the full-text catalog.
66
+
67
+
`REORGANIZE` also optimizes internal index and catalog structures.
68
+
69
+
Depending on the amount of indexed data, a master merge might take some time to complete. Merging a large amount of data can create a long running transaction, delaying truncation of the transaction log during a checkpoint. In this case, the transaction log might grow significantly under the full recovery model.
70
+
71
+
As a best practice, ensure that your transaction log contains sufficient space for a long-running transaction before reorganizing a large full-text index in a database that uses the full recovery model. For more information, see [Manage the size of the transaction log file](../../relational-databases/logs/manage-the-size-of-the-transaction-log-file.md).
72
+
73
+
#### AS DEFAULT
74
+
75
+
Specifies that this catalog is the default catalog. When you create full-text indexes without specifying catalogs, the default catalog is used. If there's an existing default full-text catalog, setting this catalog `AS DEFAULT` overrides the existing default.
76
+
77
+
## Permissions
78
+
79
+
To use `ALTER FULLTEXT CATALOG`, you need one of the following permissions:
80
+
81
+
-`ALTER` permission on the full-text catalog
82
+
- Membership in the **db_owner** or **db_ddladmin** fixed database roles
83
+
- Membership in the **sysadmin** fixed server role
84
+
85
+
To use `ALTER FULLTEXT CATALOG ... AS DEFAULT`, you need `ALTER` permission on the full-text catalog, and `CREATE FULLTEXT CATALOG` permission on the database.
86
+
87
+
## Examples
88
+
89
+
The following example changes the `AccentSensitivity` property of the default full-text catalog `ftCatalog`, which is accent sensitive.
0 commit comments