SQL stored procedure

I am trying to run a SQL stored procedure within Workbench and continually get an error stating "Input string was not in a correct format". The input string is as follows:

EXEC Media_DeliverSearch_Update @StartDate='10/1/2016', @EndDate='10/16/2016'

 

Any ideas on the proper syntax for calling a stored procedure with date inputs for parameters?

Thanks.

Comments

  • Errors you get in workbench for ODBC connections should be the errors returned from the database, not workbench, so you'd probably want to consult your ODBC driver docs or database docs for specifics.

     

    It could be something like:

    exec procedure_name (startdate,enddate);

    or

    call schema.procedure_name (startdate,enddate);

    or

    something entirely different, depending on how the sytem is set up.

     

    Domo's workbench squad is very helpful also.  You can reach them through the helpdesk line.

    Aaron
    MajorDomo @ Merit Medical

    **Say "Thanks" by clicking the heart in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"
  • @mattdonovan, did @AS's reply help you out?