EXEC [dbo].[sp_get_lowqtyproduct]
I want to know how many data in this 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?
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.
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.
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