Title: Message
I love SPs, its almost the only thing I use, I just don't like cfstoredproc ;-) because you can't work with named parameters which is a real drawback for me..
I know you could work with named parameters in cfquery but only return one result set, just posted the question yesterday in case something is possible that I do not know about, I had been investigating, and it might be possible with JDBC, but doesn't anyone else know any more about this? No one interested in working with named parameters?
 
-----Original Message-----
From: Antony Sideropoulos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 16 June 2004 9:52 AM
To: CFAussie Mailing List
Subject: [cfaussie] Re: CF stored proc

nope - was hoping you could tell me!
 
nevermind
 
btw, i thought of another reason i like SPs - you can return multiple result sets quite easily ;-)

>>> [EMAIL PROTECTED] 16/06/2004 9:34:49 am >>>
Don't know mate, the MVC methodologiesI have seen thus far only use cfquery, got one that uses stored procedures?
-----Original Message-----
From: Antony Sideropoulos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 16 June 2004 8:44 AM
To: CFAussie Mailing List
Subject: [cfaussie] Re: CF stored proc

um, remind me how the MVC model works? and how stored procs don't fit in?

>>> [EMAIL PROTECTED] 15/06/2004 8:12:04 pm >>>
I'm thinking to support the MVC model??
 
While we rarely use stored procedures here from CFMX (for many and varied reasons that aren't worth going into)
</snip>
 
If you get the time and energy, would love to hear your reasons (or at least the top 10) ...
 
The only reason I can think of is query caching isn't possible - but that's only important for selects.

Antony

>>> [EMAIL PROTECTED] 15/06/2004 7:51:00 pm >>>

> 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 mat! eri! als 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.! daemo! n.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/
----------------------------------------------------------------------
Maddocks
Melbourne - Tel: (61 3) 9288 0555 Fax: (61 3) 9288 0666
Sydney - Tel: (61 2) 8223 4100 Fax: (61 2) 9221 0872
Web: http://www.maddocks.com.au
----------------------------------------------------------------------
The information in this electronic mail is privileged
and confidential, intended only for use of the individual
or entity named. If you are not the intended recipient,
any dissemination, copying or use of the information is
strictly prohibited. If you have received this transmission
in error please delete it immediately from your system
and inform us by email on [EMAIL PROTECTED]
-----------------------------! -------! ----------------------------------
---
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/
----------------------------------------------------------------------
Maddocks
Melbourne - Tel: (61 3) 9288 0555 Fax: (61 3) 9288 0666
Sydney - Tel: (61 2) 8223 4100 Fax: (61 2) 9221 0872
Web: http://www.maddocks.com.au
----------------------------! ------------------------------------------
The information in this electronic mail is privileged
and confidential, intended only for use of the individual
or entity named. If you are not the intended recipient,
any dissemination, copying or use of the information is
strictly prohibited. If you have received this transmission
in error please delete it immediately from your system
and inform us by email on [EMAIL PROTECTED]
----------------------------------------------------------------------
---
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
---
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/
----------------------------------------------------------------------
Maddocks
Melbourne - Tel: (61 3) 9288 0555 Fax: (61 3) 9288 0666
Sydney - Tel: (61 2) 8223 4100 Fax: (61 2) 9221 0872
Web: http://www.maddocks.com.au
----------------------------------------------------------------------
The information in this electronic mail is privileged
and confidential, intended only for use of the individual
or entity named. If you are not the intended recipient,
any dissemination, copying or use of the information is
strictly prohibited. If you have received this transmission
in error please delete it immediately from your system
and inform us by email on [EMAIL PROTECTED]
----------------------------------------------------------------------
---
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

Reply via email to