Not really an answer, more a suggestion for a slightly different approach. Perhaps use a table variable(instead of a global temp table), as well as a single stored proc. You shouldn't need to have the procedure call itself, just have all the sql you need in the proc within a conditional loop to run while child records are found.
Matthew P. Smith Web Developer, Object Oriented Naval Education & Training Professional Development & Technology Center (NETPDTC) (850)452-1001 ext. 1245 [EMAIL PROTECTED] -----Original Message----- From: Richard Fantini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 1:59 PM To: CF-Talk Subject: MX doesn't work with recursive stored procedure using temp table Getting a strange error calling a stored procedure after upgrading to MX. Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]Invalid object name '##GetSubMembersTemp'. The procedure recursively calls itself to walk through a parent-child tree structure, using a temp table to store the results. This code works perfectly on CF5, not sure what the deal is. I'm using CFSTOREDPROC, returning two result sets and a return code. The servers are Win 2000, database is SQL 2000. Any help would be more than appreciated. Thanks. -Rich ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

