Question

  Asked: May 8 2008   11:18 AM GMT
  Asked by: Les za


MySQL Stored Procedures in Crystal Reports


MySQL, Crystal Reports, MySQL Stored Procedures, Crystal Reports 9

Hi,
am using Crystal Reports 9 and MySQL 5 DBMS.
I have a stored procedure which accepts a parameter, Crystal Reports won't accept this stored procedure and cites 'Incorrect Number of Arguments; expected 1, got 0'.

Im pretty new to MySQL and perhaps I shouldn't be creating stored procs the way I do:

CREATE DEFINER=`admin`@`localhost` PROCEDURE `sp_Report`(IN vClientID CHAR(7))
BEGIN
SELECT CONCAT(Clients.FirstNames, ' ', Clients.Surname) AS ClientName
FROM Clients
WHERE Clients.ClientID = vClientID;
END

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


Start this Answer and Earn your Knowledge Points!

By clicking "Create Answer", you can write the answer to this question that can be improved upon by your peers using the Answer Wiki.

Browse more Questions and Answers on Database and Development.

Looking for relevant Database Whitepapers? Visit the SearchOracle.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register