# SQL database connector : get message back from stored procedure #mysql

**URL:** <https://forum.bubble.io/t/sql-database-connector-get-message-back-from-stored-procedure-mysql/44123>\
**Category:** Plugins\
**Created:** [December 6, 2018, 4:13pm UTC](https://forum.bubble.io/t/sql-database-connector-get-message-back-from-stored-procedure-mysql/44123 "2018-12-06T16:13:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![damien.laborie](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/damien.laborie/32/30928_2.png) [@damien.laborie](https://forum.bubble.io/u/damien.laborie)\
**Post date:** [December 6, 2018, 4:13pm UTC](https://forum.bubble.io/t/sql-database-connector-get-message-back-from-stored-procedure-mysql/44123/1 "2018-12-06T16:13:39Z")

</div>

I try to call a stored procedure with 3 parameters IN + 1 parameter OUT.( p\_message\_out for eg)

SQL connector doesn’t like the OUT parameter so I’ve been advised to set all my parameters as IN parameters and to do a select at the end of my procedure to get my data back.  
I did that and set my Query in the connector as “use as both”  
I manage to call my procedure that executes perfectly but no way to get the answer back.

Did anyone manage to get answer from stored procedure that were called for action ?

Below, screen shots and message to support  
1/ in my SQL , I did not set any OUT parameters as It is not allowed by your plugin  
I set 4 parameters as In parameters and at the end of procedure I wrote a select to get the answer in the last parameter :

SET p\_MessageOut=‘everything not so good’;  
SELECT p\_MessageOut;

If I call it I get :  
 ![2018-12-06_17h14_24](https://us1.discourse-cdn.com/bubble/original/3X/2/7/27218865a684ad91d23d37a5b8c6958feb9e0fc8.png)

2/ In bubble plug in , I initialized my procedure call like this :

 ![2018-12-06_16h47_06](https://us1.discourse-cdn.com/bubble/original/3X/d/7/d7905f78dd7d193c51fa43299e7d84f41b33ed05.png)

3/ in the workflow  
First I call my procedure

 ![2018-12-06_16h54_02](https://us1.discourse-cdn.com/bubble/original/3X/1/2/12724050a47a8f49bd697a49e38e81dc2b3185e1.png)

4/ Then I try to get the result back : how to do it ?  
I set a group to receive the response :  
 ![2018-12-06_16h58_03](https://us1.discourse-cdn.com/bubble/original/3X/a/6/a6b2b55ed8b70e7779eed711a0f838f5f4988187.png)

And I tried to display it :

 ![2018-12-06_16h55_58](https://us1.discourse-cdn.com/bubble/original/3X/d/4/d4b334f419aa7f6fe0c628e73c04724b4711d602.png)

---

<div class="post-metadata">

**Author:** ![julienallard1](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@julienallard1](https://forum.bubble.io/u/julienallard1)\
**Post date:** [May 17, 2019, 6:42pm UTC](https://forum.bubble.io/t/sql-database-connector-get-message-back-from-stored-procedure-mysql/44123/2 "2019-05-17T18:42:32Z")

</div>

hey @damien.laborie, I came across your post. Did you figure it out?

---

<div class="post-metadata">

**Author:** ![sriram](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sriram/32/57307_2.png) [@sriram](https://forum.bubble.io/u/sriram)\
**Post date:** [January 3, 2021, 3:35pm UTC](https://forum.bubble.io/t/sql-database-connector-get-message-back-from-stored-procedure-mysql/44123/3 "2021-01-03T15:35:54Z")

</div>

@damien.laborie: Were you able to Use the stored procedures? I am trying to use it but it doesn’t seem to return any results.

---

<div class="post-metadata">

**Author:** ![contatosavio](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@contatosavio](https://forum.bubble.io/u/contatosavio)\
**Post date:** [January 18, 2022, 10:07pm UTC](https://forum.bubble.io/t/sql-database-connector-get-message-back-from-stored-procedure-mysql/44123/4 "2022-01-18T22:07:47Z")

</div>

I´m facing the same problem with stored procedures
