You may find lots of DSN strings at:
http://www.connectionstrings.com/
![]() |
|
||||||||||
|
odbc_connectDescriptionresource odbc_connect ( string dsn, string user, string password [, int cursor_type] )Returns an ODBC connection id or 0 (FALSE) on error. The connection id returned by this functions is needed by other ODBC functions. You can have multiple connections open at once as long as they either use different db or different credentials. The optional fourth parameter sets the type of cursor to be used for this connection. This parameter is not normally needed, but can be useful for working around problems with some ODBC drivers. With some ODBC drivers, executing a complex stored procedure may fail with an error similar to: "Cannot open a cursor on a stored procedure that has anything other than a single select statement in it". Using SQL_CUR_USE_ODBC may avoid that error. Also, some drivers don't support the optional row_number parameter in odbc_fetch_row(). SQL_CUR_USE_ODBC might help in that case, too. The following constants are defined for cursortype:
For persistent connections see odbc_pconnect(). odbc_connect
Kalle Sommer Nielsen
19-Sep-2007 06:07
You may find lots of DSN strings at:
stefanov at uk dot ibm dot com
29-Aug-2007 02:15
As a follow up to my previous post regarding "PHP get data from IBM Tivoli Netcool ObjectServer (Sybase database)", the link to the article has changed and is now:
exkludge at gmail dot com
16-Jan-2007 04:02
After doing "harald dot angel at gmail dot com" suggestion, you may still receive this error:
francesco_NO_SPAM_at_paladinux_dot_net
07-Jan-2007 11:33
For connection to Informix database via ODBC, there are some problem (depending from the version of DB).
harald dot angel at gmail dot com 06-Dec-2006 06:12
- Windows - OS |
| © 2007 info@grandviewstudio.com |
|
Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324 Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330 Z058440144362 Z348613067571 |