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
Post a Comment