AnsweredAssumed Answered

python script using arcpy.CreateDatabaseConnection_management creates a connection to the wrong geodatabase.

Question asked by jpaine on Sep 18, 2014
Latest reply on Mar 26, 2015 by reminishad

I'm using SQL Server 2008 R2, sde v10 geodatabases, and Desktop v10.2.2.

 

'PublicWorks'  geodatabase exists in the sde schema, 'GIS' geodatabase in the dbo schema. Running the following script establishes a connection to 'PublicWorks' instead of 'GIS'.

 

Using the tool in ArcToolbox establishes the connection correctly to the GIS db.

Why is the attached script not connecting to the GIS geodatabase?

Outcomes