Anubhaw
Anubhaw

Reputation: 6068

Calling Stored procedure through Rails?

How can i access Stored procedure created in Mysql through rails code? I am currently using following versions for rails application:-

Rails 2.1.0
Ruby Enterprise Edition 2010.01

Thanks....

Upvotes: 1

Views: 1893

Answers (1)

user843910
user843910

Reputation:

try this below: ActiveRecord::Base.connection.execute("call sp_name(param1,param2,.....)")

Upvotes: 3

Related Questions