Forum Discussion

MP_123's avatar
MP_123
Microsoft Employee
10 years ago
Solved

stored procedure with azure sql database

hi, can i use stored procedure in DirectQuery mode? that gets pararmetets from my slicers, and show data according to?   thanks!
  • Eric_Zhang's avatar
    10 years ago

     


    can i use stored procedure in DirectQuery mode? that gets pararmetets from my slicers, and show data according to?

     


    MP_123

    Based on my test, so far it is not support to use stored procedure in DirectQuery mode. When trying to set up to use a stored procedure, usually an error occurs as below.

     

    The error cause is because in DirectQuery, it actually sends a SQL as below to database, which has syntax error.

     

    Regarding parameter and filter, in DirectQuery mode, the selecting action in a Slicer actually fetches data with the selections as filter in SQL end. You don't have to use a stored procedure to apply parameters to filter data.