[ubuntu-it] Help Apache-PHP-Database-ODBC
marco garavaglia
m.garavaglia a siscat.it
Gio 26 Mar 2009 11:33:30 GMT
Buongiorno
Non sono sicuro che questa sia la lista corretta a cui chiedere...
Sto utilizzando un server web come da oggetto che funziona regolarmente con query su Mysql e, via ODBC, su DB2 su AS400.
Ho bisogno di accedere anche a Microsoft Access.
Pensavo fosse un problema "banale", ma non va.
Da terminale via isql tutto OK.
Da web, se lo testo con un
odbc_tables($dbconn)
mi restituisce correttamente tutto ( lista tabelle, lista delle query come view, lista tabelle di sistema, , ma quando tento una query standard
$query="SELECT * FROM Dati";
$risultato = odbc_exec($dbconn,$query);
si pianta miseramente e va in timeout.
Il fatto che con isql e da web odbc_tables($dbconn) funzionino, mi fa pensare che le odbc, php, ... siano a posto, ma.....
Grazie
Qui il log odbc
[ODBC][32030][__handles.c][444]
Exit:[SQL_SUCCESS]
Environment = 0x83205d8
[ODBC][32030][SQLAllocHandle.c][345]
Entry:
Handle Type = 2
Input Handle = 0x83205d8
[ODBC][32030][SQLAllocHandle.c][463]
Exit:[SQL_SUCCESS]
Output Handle = 0x8333cd8
[ODBC][32030][SQLSetConnectOption.c][262]
Entry:
Connection = 0x8333cd8
Option = SQL_ATTR_ODBC_CURSORS
Value = 1
[ODBC][32030][SQLConnect.c][3549]
Entry:
Connection = 0x8333cd8
Server Name = [spezzoni][length = 8 (SQL_NTS)]
User Name = [][length = 0 (SQL_NTS)]
Authentication = [][length = 0 (SQL_NTS)]
UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE'
[ODBC][32030][SQLConnect.c][4123]
Exit:[SQL_SUCCESS]
[ODBC][32030][SQLAllocHandle.c][510]
Entry:
Handle Type = 3
Input Handle = 0x8333cd8
[ODBC][32030][SQLAllocHandle.c][872]
Exit:[SQL_SUCCESS]
Output Handle = 0x8513170
[ODBC][32030][SQLGetInfo.c][214]
Entry:
Connection = 0x8333cd8
Info Type = SQL_FETCH_DIRECTION (8)
Info Value = 0xbfe536fc
Buffer Length = 4
StrLen = (nil)
[ODBC][32030][SQLGetInfo.c][528]
Exit:[SQL_SUCCESS]
[ODBC][32030][SQLSetStmtOption.c][174]
Entry:
Statement = 0x8513170
Option = SQL_ATTR_CURSOR_TYPE
Value = 2
[ODBC][32030][SQLSetStmtOption.c][370]
Exit:[SQL_SUCCESS_WITH_INFO]
[ODBC][32030][SQLExecDirect.c][233]
Entry:
Statement = 0x8513170
SQL = [SELECT * FROM Dati][length = 18 (SQL_NTS)]
[ODBC][32030][SQLDisconnect.c][204]
Entry:
Connection = 0x8333cd8
Maggiori informazioni sulla lista
ubuntu-it