I'm using ArcGIS 10.1 and setting up some scheduled tasks to run on our server. I am calling a python script in a .bat file.
When it runs, the connection to our SDE database is "invalid" or do not exist/supported.
However, if I open ArcCatalog and connect to our SDE it runs without a hitch.
In the script I have a few feature classes referenced as this:
Database Connections\\Connection to gisserver.sde\\master.DBO.Blah\\master.DBO.Towns
And the SDE as :
masterSDE = "Database Connections\\Connection to gisserver.sde"
I want this script to be automated overnight, so opening up ArcCatalog is not an option.
Is there a way to establish a connection to databases (SDE's) like you would in ArcCatalog programmatically?