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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -