Forum Discussion

SJi's avatar
SJi
Frequent Visitor
8 years ago

How to utilise stored procedure via variable call?

Hello,

 

when I want to utilise stored procedure as a data source as shown on the picture below, I get an error message:

Unable to connect: Details: "Microsoft SQL: Error converting data type varchar to datetime2."

What am I doing wrong?

1 Reply

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi SJi,

     

    Could you call the same stored procedure in SSMS successfully? 

     

    The picture isn't very clear. Would you please share the stored procedure and Query you used in desktop? 

     

    Best Regards,
    Qiuyun Yu