Hi all,
I manage a number of SDE databases and would like to update the yearly re-licensing with a python script. The script model:
import arcpy
arcpy.EnableEnterpriseGeodatabase("C:\myconnections\database1.sde", "C:\authfiles\keycodes")
when the correct path + file references are substituted, always returns the error:
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000837: The workspace is not the correct workspace type.
Failed to execute (EnableEnterpriseGeodatabase).
I've tried the various arcpy.ClearWorkspaceCache_management() and arcpy.env commands as suggested by other posts, but no go.
Thankee, -Howard Foster