v5:database:odbc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
database:odbc [2015/12/03 19:45] – mnewnham | v5:database:odbc [2020/01/13 13:07] – Add tier2 tag dregad | ||
---|---|---|---|
Line 14: | Line 14: | ||
^ADOdb V6|Yes| | ^ADOdb V6|Yes| | ||
== Alternatives == | == Alternatives == | ||
- | [[database: | + | [[v5:database: |
</ | </ | ||
* This generic driver can be used with any database with ODBC connection support. | * This generic driver can be used with any database with ODBC connection support. | ||
Line 21: | Line 21: | ||
* Writing portable applications that use this driver is not recommended. | * Writing portable applications that use this driver is not recommended. | ||
* When configuring connections on Windows, ensure that the ODBC driver configuration (32 Bit/64 Bit) matches the installed PHP version | * When configuring connections on Windows, ensure that the ODBC driver configuration (32 Bit/64 Bit) matches the installed PHP version | ||
+ | ==== Setting The Cursor Mode ==== | ||
+ | All ADOdb ODBC drivers can configure an appropriate cursor mode. The following modes are available through PHP. | ||
+ | * SQL_CUR_USE_IF_NEEDED | ||
+ | * SQL_CUR_USE_ODBC | ||
+ | * SQL_CUR_USE_DRIVER | ||
+ | The cursor is set by setting the '' | ||
+ | <code php> | ||
+ | include ' | ||
+ | $db = newAdoConnection(' | ||
+ | |||
+ | $db-> | ||
+ | |||
+ | $db-> | ||
+ | </ | ||
+ | |||
------------------------------ | ------------------------------ | ||
Line 34: | Line 49: | ||
^ADOdb V6|Yes| | ^ADOdb V6|Yes| | ||
== Alternatives == | == Alternatives == | ||
- | [[database: | + | [[v5:database: |
</ | </ | ||
- | When used on Windows clients, this driver needs the Microsoft SQL server native client. There are feature limitations compared to the '' | + | When used on Windows clients, this driver needs the Microsoft SQL server native client. There are feature limitations compared to the '' |
+ | ------------------------------------ | ||
+ | ===== odbc_mssql2012 ===== | ||
+ | <WRAP right box round 300px> | ||
+ | == From ADOdb V5.21 == | ||
+ | == Specification == | ||
+ | ^Driver Name|odbc_mssql2012| | ||
+ | ^Data Provider|odbc| | ||
+ | ^Status|Active((This driver is actively supported by ADOdb project members))| | ||
+ | ^Windows|Yes| | ||
+ | ^Unix|No| | ||
+ | ^ADOdb V5|Yes| | ||
+ | ^ADOdb V6|Yes| | ||
+ | </ | ||
+ | When used with SQL Server 2012, concatenation of strings results in a different behaviour compared with earlier versions. [[http:// | ||
--------------------------- | --------------------------- | ||
===== odbc_oracle ===== | ===== odbc_oracle ===== | ||
Line 66: | Line 95: | ||
^ADOdb V5|Yes| | ^ADOdb V5|Yes| | ||
^ADOdb V6|Yes| | ^ADOdb V6|Yes| | ||
+ | == Alternatives == | ||
+ | [[v5: | ||
</ | </ | ||
Connects to DB2 database using either the IBM or 3rd party ODBC driver | Connects to DB2 database using either the IBM or 3rd party ODBC driver | ||
------------------------------------------ | ------------------------------------------ | ||
<WRAP tip> | <WRAP tip> | ||
- | If the driver supports it setting the Cursor Type to '' | + | If the driver supports it setting the Cursor Type to '' |
- | + | ||
- | To set SQL_CUR_USE_ODBC for drivers that require it, do this: | + | |
- | <code php> | + | |
- | $db = NewADOConnection(' | + | |
- | $db-> | + | |
- | $db-> | + | |
- | </ | + | |
</ | </ | ||
<WRAP tip> | <WRAP tip> | ||
Line 95: | Line 119: | ||
===== Feature Limitations ===== | ===== Feature Limitations ===== | ||
- | ODBC connections have functionality limitations include transactional handling. See the [[database: | + | ODBC connections have functionality limitations include transactional handling. See the [[v5:database: |
- | {{tag> | + | {{tag> |
v5/database/odbc.txt · Last modified: 2021/01/11 09:59 by peterdd