Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Standalone Python script to Read MDB on a Server?

$
0
0
I've got a python script that reads a table in Access and does a Make XY Event Theme, copies data and creates an SDE layer. I'm trying to get it to run in the SQL Server Jobs agent on a schedule. The script works on my desktop, both in ArcCatalog and stand-alone IDLE. However, I'm trying to run it on a server where there is no Access install (Server 2008 R2).

I've tried making an ODBC connection file and using the connection file in python which only partly works. The data copies OK to SDE on the server if I run the script in ArcCatalog.

If I run on the server using python.exe in SQL server job agent, the job bombs because it can't find the Access table. Same as when I try to run with IDLE. Weird.

Is there a way to code the connection to the mdb in python so that it knows about the mdb? Otherwise we could install Access on the server, not my favorite idea.

All using ArcGIS 10.1

Viewing all articles
Browse latest Browse all 2485

Trending Articles