04.12.2012 Views

ASE ODBC Driver and OLE DB Provider Migration Technical - Sybase

ASE ODBC Driver and OLE DB Provider Migration Technical - Sybase

ASE ODBC Driver and OLE DB Provider Migration Technical - Sybase

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8<br />

16 syBase ase data sOuRce adMinistRatOR<br />

<strong>ASE</strong> <strong>O<strong>DB</strong>C</strong> <strong>Driver</strong>/<strong>OLE</strong> <strong>DB</strong> <strong>Provider</strong> Connection Properties<br />

The format used to describe the connection properties includes the name of the property as used in the <strong>O<strong>DB</strong>C</strong><br />

<strong>Driver</strong> administrator, followed by the actual property name used in connection strings, surrounded in square brackets.<br />

Example:<br />

Enable High Availability [hasession/HASession]: [Descriptive text explaining the parameter]. Default [is|=] value.<br />

The connection property name isn’t case sensitive. Lower case is equivalent to the conventional upper case for<br />

initial letter of each word in the property. Words must be concatenated when the property is used in the connection<br />

string for <strong>O<strong>DB</strong>C</strong> driver connection strings. The same goes with <strong>OLE</strong> <strong>DB</strong> <strong>Provider</strong> connection properties, unless you use<br />

the generic properties such as “Initial Catalog”, “User ID”, etc.<br />

Example <strong>O<strong>DB</strong>C</strong> Connection strings:<br />

AseConnectionString = “{<strong>Driver</strong> = Adaptive Server Enterprise};UID=sa;PWD=xxx;Database=testdb;Server=asehost;<br />

Port=5000;AnsiNull=1;UseCursor=1;DynamicPrepare=1;…..”<br />

Another way to do this:<br />

AseConnectionString = “{<strong>Driver</strong> = Adaptive Server Enterprise};uid=sa;pwd=xxx;database=testdb;server=asehost;<br />

port=5000;ansinull=1;usecursor=1;dynamicprepare=1;…..”<br />

Also, you can replace {<strong>Driver</strong>=…} with DSN=ase_DSN <strong>and</strong> include other properties to over-ride DSN settings.<br />

Example <strong>OLE</strong> <strong>DB</strong> <strong>Provider</strong> Connection strings:<br />

OleDbConnectionString = “<strong>Provider</strong>=<strong>ASE</strong><strong>OLE</strong><strong>DB</strong>;Server=aseHost;Port=5000;Initial Catalog=testdb;User<br />

ID=sa;Password=xxx….”<br />

OleDbConnectionString = “<strong>Provider</strong>=<strong>ASE</strong><strong>OLE</strong><strong>DB</strong>;Data Source=ase1502;User ID=sa;….”<br />

The <strong>Sybase</strong> <strong>ASE</strong> Data Source Administrator (sybdrvadm.exe is a tool provided in the SDK under %SYB<strong>ASE</strong>%\<br />

DataAccess\bin or %SYB<strong>ASE</strong>%\DataAccess64\bin for Winx64) so you can create <strong>OLE</strong> <strong>DB</strong> Data Sources. These are stored<br />

in this same location by default as a text file with name of the Data Source followed by the extension “sod”. The Data<br />

Source name without the “sod” extension is used in the “Data Source” connection property.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!