8 messages in com.mysql.lists.dotnetRe: More Stored Procedure Issues
FromSent OnAttachments
Jesse04 Jul 2006 06:19 
DG...@ NEFACOMP04 Jul 2006 07:23 
Jesse04 Jul 2006 08:05 
DG...@ NEFACOMP04 Jul 2006 08:29 
Jesse04 Jul 2006 09:55 
Jesse04 Jul 2006 10:11 
DG...@ NEFACOMP04 Jul 2006 12:38 
Jesse05 Jul 2006 06:25 
Subject:Re: More Stored Procedure Issues
From:Jesse (jl@msdlg.com)
Date:07/05/2006 06:25:22 AM
List:com.mysql.lists.dotnet

Here is the code: ================================= CREATE PROCEDURE `test`.`sp_GetNextInv`( IN nChapterID Int, OUT cInvNo VarChar(15) ) BEGIN SELECT '0001214' INTO cInvNo; END =================================

This one works. So, knowing that, it appears that there was something wrong with my original procedure, so I set out to debug it, and found that I had declared cInvNo as a variable in the procedure as well as it being a parameter. I think this may have been what was causing the problem. I removed it, and the procedure works fine now.

I'm new to stored procedures in general, and really "green" when it comes to MySQL stored procedures. I should have tried the "divide and conquire" technique to find the problem to begin with. Anyway, mystery solved.

I really appreciate your help on this.