We often times recommend re-indexing the backend tables in the FIMSynchronizationService Database. The goal of this article is to provide the steps on how to re-index all of the tables in the backend FIMSynchronizationService Database.
USE FIMSynchronizationService (*NOTE: If you are using a previous identity product,
then
the
database
name
will be MicrosoftIdentityIntegrationServer.)
DECLARE
@table_name
varchar
(1000)
declare
c1
cursor
for
SELECT
FROM
sysobjects
WHERE
xtype =
'U'
open
fetch
next
from
into
while @@Fetch_Status = 0
begin
DBCC DBREINDEX (@table_name,
''
)
end
close
deallocate
GO
Database Management for the ILM Synchronization backend Database