Connection strings for Sybase Adaptive
.NET libraries for Sybase Adaptive
- ASE ADO.NET Data Provider - AseConnection
- .NET Framework Data Provider for OLE DB - OleDbConnection
- .NET Framework Data Provider for ODBC - OdbcConnection
OLE DB providers for Sybase Adaptive
ODBC drivers for Sybase Adaptive
ASE ADO.NET Data Provider
Usage Sybase.Data.AseClient.AseConnection
Manufacturer Sybase
Standard
Using the sql.ini file
If the server isn't aliased, you have to use the ip address and port number in the connection string, not ideal as these may change occassionally. Installing sybase on a machine, you will have a "sql.ini" file that maps an alias name to an ip address and a port. That file can be rolled out to all users, and the sql.ini updated when necessary. Use the following connection string to force the AseConnection object to use the interface file.
Adaptive Server Anywhere OLE DB Provider
Usage Provider=ASAProv
Manufacturer Sybase
Standard
TCP/IP
Use this when connecting to a server located on the other side of a router. Without the Links=tcpip(Host=servername) the error "Server could not be found" can arise when connecting.
Adaptive Server Anywhere ODBC Driver
Usage Driver=Adaptive Server Anywhere 7.0
Manufacturer Sybase
Standard
Specific port
Multiple servers
Multiple servers with different TCP/IP ports
Sybase ASE OLE DB Provider
Usage Provider=ASEOLEDB
Manufacturer Sybase
With Data Source .IDS file
Note that you must create a Data Source .IDS file using the Sybase Data Administrator. These .IDS files resemble ODBC DSNs.
Adaptive Server Enterprise (ASE) alternative 1
Some reports on problem using the above one, try the following as an alternative.
Adaptive Server Enterprise (ASE) alternative 2
Some other reports on problem using the above one, try the following as an alternative
Adaptive Server Enterprise (ASE) 12.5
This one works only from Open Client 12.5 where the server port number feature works, allowing fully qualified connection strings to be used without defining any .IDS Data Source files.
Adaptive Server Enterprise (ASE) 15.0
Adaptive Server Enterprise (ASE) 15.0 alternative
This one is included because of reported problems with using the "Catalog" key which was solved by using the 12.5 syntax key "Initial Catalog" instead.
.NET Framework Data Provider for OLE DB
Usage System.Data.OleDb.OleDbConnection
Manufacturer Microsoft
Use an OLE DB provider from .NET
See the respective OLEDB provider's connection strings options. The .net OleDbConnection will just pass on the connection string to the specified OLEDB provider. Read more here.
Adaptive Server Enterprise ODBC driver
Usage Driver={Adaptive Server Enterprise}
Manufacturer Sybase
Adaptive Server Enterprise 15.0
The key "app" is optional
Standard Sybase System 12 Enterprise Open Client
Standard Sybase System 12.5 Enterprise Open Client
TDS based ODBC driver (from Sybase OCS 12.5)
Standard Sybase System 11
Intersolv 3.60
Usage Driver={INTERSOLV 3.60 32-BIT Sybase}
Manufacturer DataDirect Technologies
Standard
Intersolv 3.10
Usage Driver={INTERSOLV 3.10 32-BIT Sybase}
Manufacturer DataDirect Technologies
Intersolv 3.10
Sybase SQL Anywhere (former Watcom SQL) ODBC driver
Usage Driver=Sybase SQL Anywhere 5.0
Manufacturer Sybase
Default local database engine
The empty DSN parameter could be critical if experiencing error 7778.
Remember to start the connection string with "odbc:" if you are using PHP PDO_ODBC
Database engine not running
If AutoStop is set to YES then the database is unloaded automatically as soon as there are no more open connections to it.
When the engine starts the database specified by DatabaseFile, the engine will use the supplied DatabaseSwitches as command line options to determine startup options for the database. The Sybase manual contains a List of DatabaseSwitch values.
.NET Framework Data Provider for ODBC
Usage System.Data.Odbc.OdbcConnection
Manufacturer Microsoft
Use an ODBC driver from .NET
See the respective ODBC driver's connection strings options. The .net OdbcConnection will just pass on the connection string to the specified ODBC driver. Read more here.