Calling stored procedure
Hi,
How to create a SQLCommand service, that invoke my stored procedure and return a result?
I'm using MySQL database. I've created a simple stored procedure that inserts a row and returns the last id.
CREATE PROCEDURE TestProcedure(OUT RecordId INT)
BEGIN
INSERT INTO TestTable (Name) VALUES ("Hello");
SET RecordId = LAST_INSERT_ID();
END
Now, I added a new Service and choose SQL Command type, and wrote following line in it
CALL TestProcedure(@result)
Still, I'm not seeing the ID when I execute the service.
Is this the correct way to set the result? Should I do something else?
Regards
Arunkumar D



