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.
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:
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
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?
Can you provide a screenshot of the empty database and any tables that are created after it fails?
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.