Problems scheduling a python program using the ODBC module with WinAT

André Larsen Risnes andrer at stud.cs.uit.no
Thu Mar 23 07:12:16 EST 2000


Hi. I have a small progam that contatcs an ODBC data source, like this:


import dbi, odbc

...

dbc = odbc.odbc('theDSN/theUID/thePASSWORD')

...


The program is started from a .bat file. The problem: When i start the
.bat
file from the command line it works fine, but when the WinAT scheduler
starts the .bat file, the program can't contact the ODBC data source. 
Any suggestions to why this might be so would be much appreciated.

--
André Larsen Risnes



More information about the Python-list mailing list