Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
10 years ago
Solved

Data Update on SQL Server using a PowerBI Enterprise Gateway

We define a source data to a SQL Server on a PowerBI Enterprise Gateway with sucess. But when we try to update the data using the following source data: let     Source = Sql.Database("<SQL server>...
  • Anonymous's avatar
    Anonymous
    10 years ago

    Anonymous Have you tried dynamically generating the parameters in the stored procedure so you don't have to hardcode them?

    For instance. Build a calling sproc that handles the hardcoded parameters or dynamically generate them in Sproc 1, and have sproc 1 call sproc 2.

     

    A psuedo code example:

     

    CREATE PROCEDURE dbo.RunExcelActividadesPrevisaoFaturacao

     

    as

     

    declare @begindate date = begindate

    declare @enddate date = enddate

    declare @query int = 5

     

    Execute dbo.ExcelActividadesPrevisãoFaturação @begindate, @enddate, @query