Forum Discussion

FunDeckHermit's avatar
8 years ago
Solved

DirectQuery with stored procedure using temptables

Hello everybody,     According to this link I can circumvent the DirectQuery wrapping using OPENROWSET. This would work, exept my stored procedure uses temptables.  This gives me the (SQL 2014) ...
  • FunDeckHermit's avatar
    FunDeckHermit
    8 years ago

    Hello everybody reading this,

     

    I solved my problem by:

    1. Changing the Stored Procedure to a Function
    2. Changing the Temp Tables (#) to Table Variables (@)