Calling MySQL stored procedure / query from SQL Server stored procedure - mysql

Is there any way to call a MySQL stored procedure / query from a SQL Server stored procedure?
Regards,
Ashish

First, you need to create a linked server
Then you call it like this in your procedure
EXEC('MySQL_Procedure;') AT MySQLSERVER;
Or using OPENROWSET / OPENQUERY

Related

how to convert a sql server store procedure to mysql procedure?

I have to convert store procedure from that is written in sql server, to mysql procedure. I know the their general differences like AS, GO and ; but still mysql procedure has not the same result as sql server. It is noteworthy that tables and their data are the same. can anyone say other differences between them?
I will thank you if you tell me correct answer in this case
I figure out for using mysql parameters like IN b INT in procedure code, I must use b directly! not #b like sql server

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?

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

How to call a View from a Stored Procedure in Server 2008?

Im in the process of migrating an Access DB to Sql Server 2008 and right now Im converting these Access macros to store procedures. Most of the macos are calling queries so Ill need to convert the queries into views and then have the stored procedure call the views. What is the syntax to call the view?
Same syntax as selecting data from a table:
SELECT *
FROM view

How to execute a stored procedure SQL (MySQL) on Unix

how to execute a stored procedure SQL (MySQL) on Unix ..?
Thank you.
at the risk of being called facetious
EXECUTE stored_procedure