Hey thanks man. > -----Original Message----- > From: Brad Wood [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 12:40 PM > To: CF-Talk > Subject: RE: Stored Proc/CF help!! > > Wait a minute-- I just looked at your code again. > > You really only have one resultset. The first select is just > setting the value of your @status variable. > > I don't know what database you are using, but in SQL server > 2000 your proc would look like this: > > CREATE PROCEDURE dbo.get_stuff > @status AS varchar(255) OUTPUT > AS > > .... > > Notice the "output" after the parameter declaration. > > > Then your cfstoredprocparam needs to look like this: > > > <cfstoredproc procedure=" get_stuff " datasource="#request.dsn_write#" > returncode="Yes"> > > <cfprocparam cfsqltype="CF_SQL_INTEGER" dbvarname="@status" > type="InOut" > variable="name_of_variable_for_status"> > > <cfprocresult name="name_of_variable_for_result_set" resultset="1"> > > </cfstoredproc> > > Notice the type="InOut" > > In theory this would work if your database is like mine. :) > > ~Brad > > > -----Original Message----- > From: Tim Heald [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 11:30 AM > To: CF-Talk > Subject: RE: Stored Proc/CF help!! > > They are both still undefined. > > This is killing me because the procedure compiled just fine, > it doesn't have an IN variables, is there something I need to > do to specify that they are OUT result sets? > > > -----Original Message----- > > From: Brad Wood [mailto:[EMAIL PROTECTED] > > Sent: Monday, January 09, 2006 12:27 PM > > To: CF-Talk > > Subject: FW: Stored Proc/CF help!! > > > > Sorry, correction: > > > > <cfprocresult name="resultset_name_1" resultset="1"> <cfprocresult > > name=" resultset_name_2" resultset="2"> > > > > I mistyped. The result sets would need unique names. (but you > > probably figured that out anyway...) > > > > ~Brad > > > > > > > > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228885 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

