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?