Ask a Question related to Coldfusion Database Access, Design and Development.
-
ywc #1
CF MX6.1 Pro and Informix 7.31
I am trying to configure the IBM Informix JDBC driver so we don't have to use
the ODBC connection between Windows 2000 box and the Informix database resides
in a Sun box which hangs from time to time.
[url]http://www.macromedia.com/support/coldfusion/ts/documents/config_ibm_informix.ht[/url]
m
I have the datasource connection works fine. ColdFusion application runs OK
with regular select queries. But when I tried to write to a temp table in
database, I got "Method Can be called only once" error. I have not test update
and delete yet.
The driver version I am using is "3.00JC2" which is the most current. There
was a post dated April 2004 specify a different version of driver that can fix
the problem. I have tried, but same error without luck.
[url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=6&thread[/url]
id=780851&highlight_key=y&keyword1=Method%20can%20 be%20called%20only%20once
Does anyone out there experiences the same problem before and know how to fix
it? Does this a driver problem?
Many thanks in advance for any response.
yc
ywc Guest
-
ANNOUNCE: DBD::Informix - IBM Informix Database Driver for PerlDBI Version 2005.01 (2005-03-14) released
IBM Informix Database Driver for Perl DBI Version 2005.01 (2005-03-14) has been uploaded to CPAN. IBM Informix Database Driver for Perl (also... -
Trouble Connecting to Informix DB with UnixODBC/Informix-Client-SDK-2.8UC2
Hello Informix Users! If anyone can help with this I will very much appreciate it!!! Setting up UnixODBC/informix is proving to be somewhat... -
Difference between Informix connect and Informix Client SDK
Does Somebody would tell me the difference between those Informix products? And the estimated cost of each one (for Linux) ? Thanks in advance... -
Eleven FAQ's About comp.databases.informix and informix-list@iiug.org
Eleven FAQ's About comp.databases.informix and informix-list@iiug.org ===================================================================== Last... -
[comp.databases.informix] retrieving Stored procedure with SQL IN INFORMIX
On Fri, 27 Jun 2003 09:54:13 -0400, Lionel Girard wrote: Myschema does the same thing in ESQL/C and there are not spaces compressed out. The... -
-
ywc #3
Re: CF MX6.1 Pro and Informix 7.31
I found that this problem happens whenever I have a query that write data to a
temp tables in the database. Sometimes, we need to store user input in a temp
table, after we process the data, we then drop the table.
For pages that involve static tables, they work just fine.
Sorry I can't post the code here.
Thanks.
Wendy
ywc Guest
-
jumajii #4
Re: CF MX6.1 Pro and Informix 7.31
Ok Wendy,
first you needed of create the temporary table.
You can perform this in two ways:
with the :"select .... into temp" statement
or
with the explicit: "create temp table".
For you necessary i think that the second is the right way.
You can test this code:
<cfquery name="firststep" datasource="#Application.youDsn#">
create temp table tmpTest (userid char(30))
</cfquery>
<cfif isDefined("Form.userid") and Form.userid NEQ "">
<cfquery name="secondstep" datasource="#Application.youDsn#">
insert into tmpTest values('#Form.userid#')
</cfquery>
<cfquery name="outTest" datasource="#Application.youDsn#">
select * from tmpTest
</cfquery>
<cfdump var="#outTest#">
</cfif>
<cfform name="testTemp" action="">
<cfinput type="text" name="userid">
<input type="submit" name="submit" value="Insert">
</cfform>
Excuse me for my english
Regards
Marco
jumajii Guest
-
ywc #5
Re: CF MX6.1 Pro and Informix 7.31
Yes, I did create the temp table first.
Basically, I run a query to get data I need, loop throught the result, and
enbed the insert statement within the loop.
Everything wroks fine with the ODBC connection, but got strange error with the
JDBC connection. I believe this is a problem with the Informix JDBC driver.
Many thanks to your reply.
ywc
ywc Guest
-
jumajii #6
Re: CF MX6.1 Pro and Informix 7.31
Look this (informix section):
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.1a3c2[/url]
ad0&extid=1a3c2ad0&dialogID=14443437&iterationID=1 &sessionID=4830a2fa005259285a7
9&stateID=0+0+14447948&mode=simple
Marco
jumajii Guest
-
Diacritical #7
Re: CF MX6.1 Pro and Informix 7.31
To make this error go away with IBM's drivers, you need JDBC 2.21.JC5X2 or later.
-- DCP
Diacritical Guest
-
ywc #8
Re: CF MX6.1 Pro and Informix 7.31
DCP,
I have tried version 3.00.JC2 as well as version 2.21.JC5. The problem never
goes away. (not sure what is JC5X2, here is the site that I had found for all
JDBC drivers
[url]http://www14.software.ibm.com/webapp/download/search.jsp?go=y&rs=ifxjdbc[/url], if
this is not the correct site, please let me know)
If I don't involve temp table, everything is working just fine. As soon as I
touch temp table, I was errored out with 'method can be called only once'
message.
Many thanks for the reply.
yc
ywc Guest



Reply With Quote

