Hi
Gary,
care
to comment on this one?
T
--------Original Message-----
From: Taco Fleur [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 15 June 2004 8:02 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: CF stored procYou are right, however the reason I don't like to work with cfstoredproc is because you cannot work with named parameters, unless something changed without me knowing??If a stored procedure has 20 parameters and you only need to feed it the last one you will need to pass all the other 19 as null.Taco Fleur
Tell me and I will forget
Show me and I will remember
Teach me and I will learn--------Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Menzel
Sent: Tuesday, 15 June 2004 7:51 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: CF stored proc
> But, the million dollar question is: how do you retrieve multiple
> result sets with this syntax? In this case qResult only returns one
> result set..
> I could of course return one big xml result set which contains all
> three but that's a pain, I really hate cfstoredproc...
While we rarely use stored procedures here from CFMX (for many and varied reasons that aren't worth going into) I would have thought that <CFSTOREDPROC> is perfect for what you want (even if you "really hate" it).
I am not sure why you hate it - it appears to give a great deal more control over the execution of the stored procedures - and I am guessing it was crafted exactly for the purpose you have described (and even more).
Another reason to use <CFSTOREDPROC> would be because it able to translate into an actual system level call for a stored procedure at the ODBC/JDBC level (assuming the driver supports if) - and not the parsing and execution of a SQL statement. So using <CFSTOREDPROC> would be faster than using <CFQUERY> in many cases. Much better when it comes to properly optimised code across different DB's.
I would say if <CFQUERY> isn't returning you multiple result sets now when you call the stored procedure, then it probably is never going to. There is only one result set for a CFQUERY because the rest of the tags that deal with it (like <CFOUTPUT> and <CFLOOP> expect only one result set) - you are lucky it returns any at all I guess.
Gary Menzel
Web Development Manager
IT Operations Brisbane -+- ABN AMRO Morgans Limited
Level 29, 123 Eagle Street BRISBANE QLD 4000
PH: 07 333 44 828 FX: 07 3834 0828
To unsubscribe from this email please forward this email to: [EMAIL PROTECTED]
If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. If you have received this email in error, we request you contact ABN AMRO Morgans Limited immediately by returning the email to [EMAIL PROTECTED] and destroy the original. We will refund any reasonable costs associated with notifying ABN AMRO Morgans. This email is confidential and may contain privileged client information. ABN AMRO Morgans has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. Materials may also be transmitted without the knowledge of ABN AMRO Morgans. ABN AMRO Morgans Limited its directors and employees do not accept liability for the results of any actions taken or not on the basis of the information in this report. ABN AMRO Morgans Limited and its associates hold or may hold securities in the companies/trusts mentioned herein. Any recommendation is made on the basis of our research of the investment and may not suit the specific requirements of clients. Assessments of suitability to an individuals portfolio can only be made after an examination of the particular clients investments, financial circumstances and requirements.
ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of ASX Group
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
Register now for the 3rd National Conference on Tourism Futures, being held in Townsville, North Queensland 4-7 August - www.tq.com.au/tfconf |
