MySQL Forums
Forum List  »  Connector/ODBC

Re: MS Access ODBC call to set session variable in MySQL
Posted by: Beate Steiner
Date: May 18, 2014 02:13AM

Hello David,

you can call your procedure from Aces like this

Connection.Execute "SELECT myProcedure(myParam)"

If you need a Seesion Variable, you can create another procedure, to set the Variablelike this.

/* mySQL*/
delimiter //
DROP FUNCTION IF EXISTS setVar//
CREATE FUNCTION setVar (Var CHAR(255)) RETURNS INTEGER
BEGIN
SET @myVar = Var;
RETURN 0;
END //
delimiter ;

/*ACESS*/
Connection.Execute "SELECT setVar(myParam)"
Connection.Execute "SELECT myProcedure()"

Options: ReplyQuote


Subject
Written By
Posted
Re: MS Access ODBC call to set session variable in MySQL
May 18, 2014 02:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.