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
Copy file name to clipboardExpand all lines: docs/t-sql/statements/alter-fulltext-catalog-transact-sql.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,40 @@ To use `ALTER FULLTEXT CATALOG`, you need one of the following permissions:
84
84
85
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
86
87
+
## Remarks
88
+
89
+
When you run a `REBUILD` operation on a full-text catalog, the rebuild operation pauses if another session has an open transaction that's running `INSERT`, `UPDATE`, or `DELETE` operations on tables that belong to that catalog. The rebuild operation resumes only after that other transaction commits or rolls back. You can monitor this situation by using the [sys.dm_exec_requests](../../relational-databases/system-dynamic-management-views/sys-dm-exec-requests-transact-sql.md) and [sys.dm_exec_sessions](../../relational-databases/system-dynamic-management-views/sys-dm-exec-sessions-transact-sql.md) dynamic management views (DMVs). You might see locks between the user session and the background rebuild sessions, with a wait type of `LCK_M_IS`.
90
+
91
+
Similarly, during a `REORGANIZE` operation, you might see the `FT_MASTER_MERGE` wait type in the session where the command is running. This wait type can occur when other sessions have long-running transactions that are doing `INSERT`, `UPDATE`, or `DELETE` operations on tables in the same full-text catalog. In the `sys.dm_exec_requests` and `sys.dm_exec_sessions` DMVs, you might see one or more background sessions with a `LCK_M_IX` wait type and the `FT_MASTER_MERGE` command. The `REORGANIZE` operation doesn't complete until those locks are released.
92
+
93
+
The following query returns blocked background sessions.
94
+
95
+
```sql
96
+
SELECTr1.session_id,
97
+
r1.blocking_session_id,
98
+
r1.wait_type,
99
+
r1.wait_resource,
100
+
r1.last_wait_type,
101
+
r1.commandAS BlockedSessionCommand,
102
+
r2.commandAS BlockingSessionCommand,
103
+
s1.login_nameAS BlockedSessionLogin,
104
+
s2.login_nameAS BlockingSessionLogin,
105
+
s1.host_nameAS BlockedSessionHost,
106
+
s2.host_nameAS BlockingSessionHost,
107
+
r1.statusAS BlockedSessionStatus,
108
+
r2.statusAS BlockingSessionStatus
109
+
FROMsys.dm_exec_requestsAS r1
110
+
INNER JOINsys.dm_exec_sessionsAS s1
111
+
ONr1.session_id=s1.session_id
112
+
INNER JOINsys.dm_exec_sessionsAS s2
113
+
ONr1.blocking_session_id=s2.session_id
114
+
LEFT OUTER JOINsys.dm_exec_requestsAS r2
115
+
ONs2.session_id=r2.session_id
116
+
WHEREr1.blocking_session_id<>0
117
+
ANDr1.status='background'
118
+
ORDER BYr1.wait_timeDESC;
119
+
```
120
+
87
121
## Examples
88
122
89
123
The following example changes the `AccentSensitivity` property of the default full-text catalog `ftCatalog`, which is accent sensitive.
0 commit comments