reporting services - SSRS / MySQL / Stored Procedure with parameters through ODBC -


we using sql server 2012 , mysql 6 , though can write sql statement directly in dataset window, cannot seem mysql stored procedure work passing parameters via call:

actuaaly problem either ssrs or odbc driver having problem sending/receiving parameter value.

other attempts @ syntax: call shop.getregions() , call shop.getregions(?) , call shop.getregions(regid) , call shop.getregions(@regid)

none of these worked.

if call procedure hard coded value i.e. call shop.getregions(5) - works.

again, if stored procedure has no parameters works fine.

can give me real direction on issue. sample of correct syntax or step step example appreciated.

finally got solution struggled couple of days. should create linked server in ssms mysql , need call stored procedure. syntax call stored procedure:

exec ('call gasp_sales_aps(?, ?)', @dt_start, @dt_end)at mysql(linked server name)  

gasp_sales_aps ---->procedure name

(@dt_start,@dt_end)------> parameters .


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -