Ask a Question related to Coldfusion Database Access, Design and Development.
-
EDUYork #1
MySQL procedure problem
I wrote a login_user routine that returns a variable, and I was the able to
select that variable and get it's value all through production using the CF
built-in web server on port 8500, but when I uploaded to the live W2003 server,
which runs MX7 under MSIIS I get
NativeErrorCode 1312
SQLState 0A000
Detail PROCEDURE login_user can't return a result set in the given context
I'm calling it onRequestStart in Application.cfc
<cftry>
<cfquery name="try_login" datasource="#this.dsn#">
call
login_user('#j_username#','#j_password#','#CGI.REM OTE_ADDR#','#CGI.HTTP_USER_AGE
NT#',@total_logins);
</cfquery>
<cfswitch expression="#try_login.recordcount#">
etc.....
It returned a result set and recordcount many other times, but no longer. I
verified I'm using the latest Connector/J 3.12 with MySQL 5.0.18 on both
machines.
Any ideas out there?
EDUYork Guest
-
#40085 [NEW]: PHP/MySQL connector and Stored Procedure problem
From: edward_chan at hotmail dot com Operating system: XP PHP version: 5.2.0 PHP Bug Type: MySQL related Bug description: ... -
Calling stored procedure from MysQL 5.0
I am trying to call stored procedures using <cfquery> in Coldfusion MX 7.0, but I am getting this error: Error Executing Database Query. General... -
Does MySQL have a Stored Procedure equivalent?
I've only used ASP and MS SQL Server before but I want to learn PHP and MySQL. Does MySQL have an equivalent of Microsoft's Stored Procedures (i.e.... -
MySQL/PHP problem. getting field names from MySQL and using it asPHP variables
Is this possible? I'd like to just get the field names from my database and use it as variables to save me from making errors as to where i should... -
ADO/Stored Procedure Problem
After creating a new recordset and setting the cursor type to AdOpenStatic, I call a stored procedure thru the recordset's Open() method, and the... -
EDUYork #2
Re: MySQL procedure problem
Figured it out... I still had an older version of Connector/J in another lib
directory.
So now I have another question... what's the best location for .jar files?
I've been told CFMX7\wwwroot\WEB-INF\lib (my current choice) CFMX7\lib and
CFMX7\runtime\lib and I suppose they all work, so is there a best practice?
EDUYork Guest



Reply With Quote

