Could not create geodatabase tables and stored procedures

2171
7
07-31-2019 11:48 AM
NirmalOjha
New Contributor II

I want to enable SDE on the SQL Server DB but I get error with 'Could not create  geodatabase tables and stored procedures'. I tried with ArcGIS Pro (v2.4), ArcCatalog (v 10.4.1), SQL Server 2014.

I followed through this support page: Error: Could not create geodatabase tables and stored procedures. Failed to execute (EnableEnterpris... but no resolution. I get the similar (same) error message shown in that page.

It can connect to other DB on the same server without problem.

Nirmal

0 Kudos
7 Replies
George_Thompson
Esri Frequent Contributor

What is the exact version of your SQL Server 2014? The min is SP3.

What other information are in the log files referenced in the errors?

--- George T.
0 Kudos
NirmalOjha
New Contributor II

Thanks George for quick reply.

The SQL Server 2014 is SP2. So, this might be the cause. Is there anything that can be done without installing/updating with the service pack. I don't have access to the Server (for now)? I have other couple of SDE enabled DBs in the same server.

Here is the Message I get when I run from toolbox:

Executing: EnableEnterpriseGeodatabase "Database Connections\AAAA.sde" C:\Users\<USER>\Documents\AGS_Test\keycode_AGS\keycodes
Start Time: <Date-Time>
Validated authorization file.
User has required privileges for geodatabase setup.
XML support is enabled for the database instance.
Successfully enabled database option ALLOW_SNAPSHOT_ISOLATION and READ_COMMITTED_SNAPSHOT.
 [Underlying DBMS error]
See the setup log in the following location for additional error information:
C:\Users\<USER>\AppData\Local\Temp\sde_setup.log
Could not create  geodatabase tables and stored procedures.
Failed to execute (EnableEnterpriseGeodatabase).

The log file content is:

[Wed Jul 31 13:04:08 2019] DB_instance_open() db_connect error: -1
[Wed Jul 31 13:04:08 2019] Error: Underlying DBMS error (-51).
[Wed Jul 31 13:04:08 2019] Error: DB_arcsde_setup: Unable to connect
[Wed Jul 31 13:04:08 2019] 42S02:[Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid object name '<DBANME>.sde.SDE_version'.
[Wed Jul 31 13:04:09 2019] ERROR installing/upgrading ArcSDE, Error = -51

0 Kudos
George_Thompson
Esri Frequent Contributor

I would recommend that you upgrade the SP on SQL Server for the new Enterprise Geodatabase creation.

What is the name DB being created?

Is the DB set up as DBO or as SDE schema?

--- George T.
0 Kudos
George_Thompson
Esri Frequent Contributor
0 Kudos
NirmalOjha
New Contributor II

It is DBO schema.

I ran the "Create Enterprise Geodatabase" tool and it successfully created the database but no tables and procedures were created.

Authentication: Operating system Authentication, my user account has full access (admin level) to the DB server.

So I tired with "Enable Enterprise Geodatabase" but same result.

Here is the screen shot of the DB that is created with "Create Enterprise Geodatabase" tool.

So, for me the connection to SQL server should have no issue as it created the DB.

 

0 Kudos
George_Thompson
Esri Frequent Contributor

Ok, you may want to contact Esri technical support and work with an analyst on this.

--- George T.
0 Kudos
NirmalOjha
New Contributor II

Thanks George.

I will first upgrade the SQL Server and if it did not resolve I will contact technical support.

0 Kudos