ColdFusion Community

The online ColdFusion / CFML community website

hi, does anyone know (or know were to find out) what elements are visible to Coldfusion as am trying to see if any results are returned and cannot used .recordcount as this appears not to be a element of a stored procedure

Regards

Rick

Reply to This

Replies to This Discussion

Rick,

Are you using a cfprocresult nested inside your ?

I'm using CF with MySQL 5 as well. Here's an example of a call to/from a stored proc.



cfstoredproc
procedure="spMyProcedure"
datasource="#application.dsn#"
returncode="no"

cfprocparam dbvarname="varMyVar" value="#form.txtTextName#" cfsqltype="cf_sql_varchar" type="in"

cfprocresult name="qryMyQueryResults"


The stored proc in MySQL looks like this:

CREATE DEFINER=`root`@`%` PROCEDURE `spMyProcedure`(IN varMyVar VARCHAR(45))
BEGIN
SELECT COLUMN1,
COLUMN2,
COLUMN3
FROM tblMyTable
WHERE COLUMN1 = varMyVar;
END

You could then use qryMyQueryResults as a qualifier in instances such as qryMyQueryResults.RecordCount.

Hope that helps.
Brian

Reply to This

Hi, thnks for info, sorted it out wonderful, thanks again

Reply to This

RSS

Specialists in ColdFusion Development
Tagged.com

> Place your advert here /h3>

Latest Activity

Sagar H Ganatra and Nikhil Saxena are now friends
13 hours ago
Nikhil Saxena and Chandan Kumar are now friends
13 hours ago
Sagar H Ganatra updated their profile photo
yesterday
Sagar H Ganatra has set up their private workspace using Huddle Workspaces.
yesterday
Sagar H Ganatra added 3 photos
yesterday
Bill Dempsey and Sagar H Ganatra joined ColdFusion Community
yesterday
on Monday
2 members updated their profile photos
on Monday
Sally Georgeson added 8 photos
on Sunday
Sally Georgeson added a video
on Sunday
Sally Georgeson updated their profile
on Sunday
Naveen Krishnamurthy, Sally Georgeson and John di Stefano joined ColdFusion Community
on Sunday

Members

  • Frank Wreath
  • Kalyan Dhar
  • Celina William
  • Renu Deshpande
  • OWL76
  • Brian Massey
  • Sagar H Ganatra
  • Jinesh.k
  • Carol McKenzie-Harvey
  • Joe Danziger
  • Nico Knaepen
  • Dustin Martin

Translate this page

© 2010   Created by Nick Tong

Badges  |  Report an Issue  |  Terms of Service

Sign in to chat!