This is what the examples indicate as db2 syntax, and it depends on the 
driver you have

'db2:ibm_db_dbi://DSN=dsn;UID=user;PWD=pass'                                

'db2:pyodbc://driver=DB2
;hostname=host;database=database;uid=user;pwd=password;port=port' 


On Saturday, 31 October 2015 17:12:11 UTC-5, ffk...@gmail.com wrote:
>
> I have the same situation here, manage to connect as400 from the shell, 
> but if i use web2py it fails....
> Is this problem already has a solution? If yes, please advise.... THX
>
> On Tuesday, September 6, 2011 at 2:07:50 PM UTC-7, Ramos wrote:
>>
>> I tried the DAL Example and i could not connect to my AS400 
>> does the DAL only works with db2 on windows or linux?
>>
>> i have my db2 in a OS400 machine
>>
>>
>> Thank you
>>
>> António
>>
>> Em 6 de setembro de 2011 21:56, António Ramos <ramst...@gmail.com> 
>> escreveu:
>>
>>> Great
>>> i tested the example from the python shell and i connected to my company 
>>> AS400 with success.
>>>
>>> FANTASTIC!!!!
>>>
>>> Tomorrow i will kick the ass of the RPG guy.
>>>
>>> :)
>>>
>>>
>>>
>>> 2011/9/6 Massimo Di Pierro <massimo....@gmail.com>
>>>
>>>>
>>>> http://ochiba77.blogspot.com/2011/09/how-to-connect-db2-with-python-pyodbc.html
>>>
>>>
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to