Greetings,
I am working in a locked down environment where I can't install any Python modules, so I have to rely on arcpy while working with SDE PostgresSQL.
I don't get any error message connecting, it doesn't return an error for the list of tables, only returns the wildcard, not the tables.
for tbl in tables:
print(tbl)
## Only returns a single wildcard, not a list of tables
I get a DBMS error "-37 DBMS Table not found" when doing select or count..
import os, sys
import arcpy
import arcgis
arcpy.env.workspace = r"D:\Users\user\Documents\ArcGIS\Projects\Databases\Databases.gdb"
sdeconn = arcpy.ArcSDESQLExecute(r"Z:\a - Connection Files\gisserver_branch.sde")
tables = ["%"]
## Logged IN
print("Logged IN")
for tbl in tables:
print(tbl)
sql = "select objectid from PRP_LandParcels_Ply"
sdeconn_tables=sdeconn.execute(sql)
Appreciate any pointers, to get this working.
Regards,
Clive