F
|
frocco author 8/15/2007 |
Anyone know how I can get arround this? PHPR 4.1 generates this error using this sql This works fine in java. Thanks Frank Error description: odbc_exec() [function.odbc-exec]: SQL error: [IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0104 - Token 20 was not valid. Valid tokens: + - AS <IDENTIFIER>., SQL state 37000 in SQLExecDirect Error File: C:\Inetpub\wwwroot\emp\include\dbconnection.php SQL Query: SELECT top 20 BSYDTAA.BSYPEMP."EMHSP#" AS HSP, BSYDTAA.BSYPEMP.EMYLNM, BSYDTAA.BSYPEMP.EMYFNM, BSYDTAC.BPRPPCP.PCDEP4, BSYDTAC.BPRPPCP.PCLDDS, BSYDTAA.BSYPEMP."EMEMP#" AS EMEMP, BSYDTAA.BSYPEMP."EMWPH#" AS WPHONE, BSYDTAA.BSYPEMP.EMEADD, BSYDTAA.BSYPEMP.EMOTSH FROM BSYDTAA.BSYPEMP, BSYDTAC.BPRPPCP WHERE BSYDTAA.BSYPEMP."EMHSP#" = BSYDTAC.BPRPPCP."PCHSP#" AND BSYDTAA.BSYPEMP.EMDEP4 = BSYDTAC.BPRPPCP.PCDEP4 AND (BSYDTAA.BSYPEMP."EMHSP#" IN (1,5)) AND (BSYDTAA.BSYPEMP.EMDOT=0) ORDER BY EMYLNM |
![]() |
Admin 8/15/2007 |
Frank, |
F
|
frocco author 8/16/2007 |
Hi Sergey, Frank, I would suggest to use ASPRunnerPro for this purpose. PHPRunner ODBC connection works with MS Access and SQL Server only. |
![]() |
Admin 8/16/2007 |
Why don't you download a trial version and give it a try? |
A
|
axidavid 8/20/2007 |
hi, |
A
|
axidavid 8/20/2007 |
Why don't you download a trial version and give it a try?
|
A
|
axidavid 8/20/2007 |
Why don't you download a trial version and give it a try?
|
F
|
frocco author 8/20/2007 |
Thanks, hi, i'm using phprunner with as400 (with odbc) you just have to modify a couple of php file to make it work : look for "addtop" in include/commonfunctions.php : it adds a "top 20" clause on the select modify it like that function AddTop($strSQL, $n) { return $strSQL; } the only drawback is you have to make this modification everytime you run the build command in phprunner hope this help David |
J
|
Jane 8/21/2007 |
Frank, |
F
|
frocco author 8/21/2007 |
Hi Jane, Frank, I wasn't able to reproduce this issue. Please give me more detailed description on how to reproduce it. |