Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to get a pyodbc connection (on a Centos machine), to a DB2 database running on an IBM i.

Whatever connection string or configuration I add, I always get the same message ..

  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  pyodbc.Error: ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found, and   no default driver specified (0) (SQLDriverConnect)')

Short of posting my configuration here, is there a working example available anywhere ?

share|improve this question
1  
The problem is more likely in your datasource. How is unixODBC configured? –  Satanicpuppy Jan 28 at 14:27
1  
What driver are you using & what are your connection settings? Showing relevant snippets of your code might help someone find the problem too. –  WarrenT Jan 29 at 23:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.