Forum Discussion
eferreira
10 years agoNew Member
Use SQL Store Procedure in Power BI
I have created a basic stored procedure without parameters in SQL Server, when I use the store procedure in Power Bi Desktop the return is ok in design but when I click on Save and Close in datasourc...
Vivs18
10 years agoRegular Visitor
Anonymous I tried proposed solution but I am getting below error in Direct Query mode against Azure SQL data source.
Details: "EvaluateNativeQueryUnpermitted failure: the query 'DECLARE @sqlCommand varchar(1000)
SET @sqlCommand = 'dbo.uspGetSyncEventSchedulePB'
EXEC (@sqlCommand)
' isn't approved for execution."
I am not sure if I am missing something as datasource is Azure Sql.
Anonymous
10 years agoNot applicable
Vivs18 If you note, I make reference in my solution that it only works with Import. Not when using Direct Query.
If you want to continue to use DQ, could you create a View and reference that?
- Vivs1810 years agoRegular Visitor
Anonymous I missed import in provided solution. But I tried with the proposed solution with Import but still it resulted in same error. I am not sure if I am missing anything here.