14 Feb
2002
14 Feb
'02
8:59 p.m.
Hi all, I am a newbie to zope as well as to python. I want to know if i can connect to a MS-SQL server database using python script from with in zope. I tried to import 'odbc' in the python script (from zope) and i got an error message saying "import 'odbc' is unauthorised". My code is: import odbc db=odbc.odbc('mydatabase') cursor=db.cursor() cursor.execute('select * from mytable') for i in fetchall() print i return printed I am a bit confused as to how to do this from zope. Is there a odbc library in zope that i have to import? i need some kind of help... --Madhavi