How to connect to sybase DB using python? -


we trying use following:

import sybase  con=sybase.connect('dsn','user','pass','db') c=con.cursor() c.execute('select count(*) table') c.fetchone() 

we don't know dsn (have database server available though).

could please suggestions or alternate solutions? (we have following database credentials): database name, database server, username , password. best way connect using these credentials ?


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -