Bug: Connecting to ArcSDE is very slow after upgrading to SQL Server 2005
After upgrading to Microsoft SQL Server 2005, the time it takes to open an ArcSDE connection in ArcCatalog or ArcMap is very slow.
In SQL Server 2000, ArcSDE queries the sysprotects system table to get permission when building the ArcCatalog Table of Contents or any similar operation that generates a list of available datasets.
In SQL Server 2005, many of the system tables, such as sysprotects, have been deprecated in favor of system views. The tables still exist and can be queried, but the performance of the queries may be compromised.
A new query has been written to generate a list of datasets. This new query takes advantage of new SQL Server 2005 Transact-SQL operators and functions that improves connection performance.
Follow the steps below:
- Ensure that the SQL Server 2005 database compatibility level is 90.
If this database has been upgraded from SQL Server 2000, the compatibility level may still be 80. In SQL Server 2005 Management Studio, right-click the database and click Properties. In the Database Properties dialog box, verify that the compatibility level is 90. If it is not, select SQL Server 2005 (90) from the Compatibility level drop-down list and click OK.
To use the sp_dbcmptlevel stored procedure to modify the compatibility level, execute the following command:
exec sp_dbcmptlevel 'database_name', 90
- Install ArcSDE 9.2 Service Pack 2. See the link in the Related Information section below.
- ArcSDE 9.2 Service Pack 2
- Can no longer connect after upgrading to ArcSDE 9.2 SP2 or higher on SQL Server 2005