System variable - Procedure name within procedure - mysql

When writing a stored procedure in MySQL is there a system variable that has the stored procedure's name?
I want to do some logging in stored procedures and I want to use the procedure name as a process id without hard coding the name in every proc. Something like me.name equals myStoredProc

Related

How to call stored procedure from another server stored procedure?

How can I call a stored procedure on another server from a stored procedure in MySql?
For example, I have stored_procedure_1 on server_1 and stored_procedure_2 on server_2.
I want stored_procedure_1 to call stored_procedure_2.
How do I write this?

MySQL Query to extract parameters present in procedure

I have some stored procedures in MySQL now I need to extract the SP name, SP parameters present in that Stored Procedure.
Through information_schema.routines I am able to extract only procedure names how to get parameters also.

Shows Invalid Object Name in Stored Procedure

I am to very new to SQL Server and to the Stored Procedure. I tried to create a Stored Procedure for updating the table. I used the below statement in the stored procedure and executed it, worked fine
CREATE PROCEDURE [dbo].[usp_UpdateDB]
When I changed it to below code
ALTER PROCEDURE [dbo].[usp_UpdateDB]
It shows in the work area like this,
But when I execute the stored procedure, it shows
I even checked, the created usp_UpadteDB Stored Procedure exists under the Stored Procedures folder and did refreshes too. What could this be?
It got solved. I closed the SQL Server Management Studio and open again, checked the Stored Procedure. It is not showing Invalid object name any more.

How to call stored procedure in mysql?

A stored procedure was created in mysql successfully but was not able to
be executed in mysql.
How to invoke stored procedure in mysql?
The Stored Procedure is just that, a Stored Procedure. When you run it, all you are doing is creating the Stored Procedure.
To execute the Stored Procedure you actually have to call the Stored Procedure with it's respective in and out parameters. Out parameters (op) should be preceded by an # symbol.
Call SP_name(p1,p1,#op1,#op2);
When in doubt just go to dev.mysql

.NET MySQL Connector Stored Procedure Parameters Order

I'm iterating through a Dictionary(Of String, String) to pass parameters to a MySqlCommand, key being the name of the variable IN in the stored procedure and value being the value I'd like to use in the stored procedure.
It seems that the stored procedure parameters supplied are order dependent in that if they're not supplied in the order that the IN arguments are listed in the stored procedure it won't execute and give errors.
This is counterintuitive since I provide the exact name of the argument as the parameter key and if one parameter is out of order then the whole stored procedure is rendered useless.
Is there any way to pass parameters order independent?