CData Python Connector for SybaseIQ

Build 25.0.9454

Establishing a Connection

The objects available within our connector are accessible from the "cdata.sybaseiq" module. To use the module's objects directly:

  1. Import the module as follows:
    import cdata.sybaseiq as mod
  2. To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
    mod.connect("user=myuser;password=mypassword;Server=localhost;Database=Northwind")

Connecting to SybaseIQ

To connect to the SybaseIQ, specify the following connection properties:

  • Server: Set this to the name or network address of the SybaseIQ or SAP SQL Anywhere database instance.
  • Database: Set this to the name of the SybaseIQ or SAP SQL Anywhere database running on the specified Server.

Optionally, you can also secure your connections with TLS/SSL by setting UseSSL to true.

Note: It is also possible to connect to an instance of SAP SQL Anywhere with the above connector configuration.

Authenticating to SybaseIQ

SybaseIQ supports several methods for authentication including basic, Kerberos, and, LDAP.

Basic

Set the AuthScheme to Basic and set the following connection properties to use SybaseIQ authentication.

  • User: Set this to the username of the authenticating SybaseIQ user.
  • Password: Set this to the username of the authenticating SybaseIQ user.

LDAP

To connect with LDAP authentication, you will need to configure SybaseIQ server-side to use the LDAP authentication mechanism.

After configuring SybaseIQ for LDAP, you can connect using the same credentials as basic authentication.

Kerberos

To leverage Kerberos authentication, begin by enabling it via the following connection property:

  • AuthScheme: Set to Kerberos will be used for authentication to SybaseIQ.
See Using Kerberos information regarding the connection properties that need to be set for Kerberos authentication.

You can find an example connection string below:

Server=MyServer;Port=MyPort;User=SampleUser;Password=SamplePassword;Database=MyDB;Kerberos=true;KerberosKDC=MyKDC;KerberosRealm=MYREALM.COM;KerberosSPN=server-name

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454