Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
WHEN RUNNING A STORED PROCEDURE FROM THE DATABASE THE DATA IS SHOWN AND IF IMPORTED WORKS. IF DIRECT QUERY THE DATA IS SHOW BUT WHEN YOU APPLY IS GIVES YOU A SYNTAX ERROR EVENTHOUGH THE ADVANCED QUERY EDITOR SAYS NO SYNTAX ERRORS. PLEASE SEE BELOW
Solved! Go to Solution.
Hi @Anonymous
It seems you need to get the data by consuming SQL Server Stored Procedure, also SQL Server Stored Procedures has parameters which you need to pass dynamically.
There is a solution about execute Stored Procedure using Managed Parameters in Power BI.
But This feature will work only for Import Mode.
As for direct query mode,
You may refer to the post below that makes use of OPENROWSET.
https://community.powerbi.com/t5/Desktop/Calling-SQL-stored-procedure-with-Direct-Query/td-p/224831
Best regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
It seems you need to get the data by consuming SQL Server Stored Procedure, also SQL Server Stored Procedures has parameters which you need to pass dynamically.
There is a solution about execute Stored Procedure using Managed Parameters in Power BI.
But This feature will work only for Import Mode.
As for direct query mode,
You may refer to the post below that makes use of OPENROWSET.
https://community.powerbi.com/t5/Desktop/Calling-SQL-stored-procedure-with-Direct-Query/td-p/224831
Best regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
which does "UPDATECOME1_2" refer to?
If it is a column name, you need change as below:
Query="select [1] from Order1"
select columnname from tablename
If error insists, could you share the screenshot with me for better analysis?
Best Regards
Maggie
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |