Connection strings for Sybase Advantage
.NET libraries for Sybase Advantage
- Advantage .NET Data Provider - AdsConnection
- .NET Framework Data Provider for OLE DB - OleDbConnection
- .NET Framework Data Provider for ODBC - OdbcConnection
OLE DB providers for Sybase Advantage
ODBC drivers for Sybase Advantage
Advantage .NET Data Provider
Usage Advantage.Data.Provider.AdsConnection
Manufacturer Sybase
Standard remote connection
The value 2 can also be used instead of REMOTE
Local connection
The value 1 can also be used instead of REMOTE
AIS connection
The value 4 can also be used instead of REMOTE
Note that ServerType values can be summed, for instance a value of 3 would mean the combination of LOCAL | REMOTE. The value can also be set to the full string, for instance, LOCAL|REMOTE instead of a numeric 3.
Separating the path and catalog parameters
Specifying port
Read only connection
Trim spaces from string data
Fields of type String will have trailing white spaced trimmed on retrieval.
If FALSE is specified, then trailing white space is maintained on the values when they are retrieved. This means that a fixed length String field with a width of 10, for example, will always return 10 characters when the value is retrieved; it is padded with as many spaces as necessary.
Network protocol
Valid CommType values are; TCP_IP, UDP_IP and IPX
Compression
If ServerType is set to LOCAL, the Compression property is ignored.
Valid values are ALWAYS, INTERNET, NEVER
Bear in mind that if compression is turned off on the server no compression will take place no matter this client setting.
User count per connection disregarding client computer
Default behaviour for counting number of users on the server is per computer connecting. This connection string overrides that behaviour making each connection count as a user even if made from the same computer.
Default value for IncrementUserCount is False
Share DBF tables to other applications
This is used to share DBF tables in a writable mode with other (non-Advantage) database applications.
Applicable to CDX and NTX TableTypes
Default value (that will lock tables) is PROPRIETARY
Show deleted records
Applicable to CDX and NTX TableTypes
Dont increment user count for stored procedure
Default value is false, meaning that the stored procedure will increment the server user count, preventing connections when user count reaches its maximum.
Disable connection pooling
Default values for pooling is true, with the options Min Pool Size=0, Max Pool Size=100, Connection Lifetime=0 (in seconds, 0 meaning it will never recycle)
Advantage OLE DB Provider
Usage Provider=Advantage OLE DB Provider
Manufacturer Sybase
Remote Server
The value "Advantage.OLEDB.1" is also applicable for the provider key, the result will be the same.
Local Server
Using FoxPro tables
If not specifying the TableType value the default value of "ADS_ADT" will be used.
Show deleted records
Please note that the ShowDeleted option is only available with FoxPro tables, ie TableType="ADS_CDX".
Using OEM characters in tables
If not specifying the CharType value the default value of "ADS_ANSI" will be used.
Ignoring rights
If not specifying the SecurityMode value the default value of "ADS_CHECKRIGHTS" will be used.
.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.
Advantage ODBC Driver
Usage
Manufacturer Sybase
ALS
ADS
Internet
Try ADS, if fail; try ALS
Ignore client rights
Specifying table cache
The number of tables to hold in cache when cursors are opened and closed. Default value is 25.
Use compression
Possible values are ALWAYS, INTERNET, NEVER or empty string. If left empty the ADS.INI file will control the setting. This parameter is not used with ALS.
Specifying connection protocol
Possible values are UDP_IP (default) and IPX.
.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.