I'm trying to execute a simple stored procedure and getting error: "the EXECUTE permission was denied on object 'stored proc name', database 'database name', schema 'dbo'."
Stored proc is just this:
USE [DB name]
GO
CREATE PROCEDURE [dbo].P_x AS
SELECT 'x' as name
go
I am able to use views from this same db no problem and have created a number of reports, dashboards, etc. however for the life of me can't figure out how to use a stored proc instead of a view..
To connect inside PowerBI I use the following syntax:
SELECT *
FROM OPENQUERY ([server_x],
'EXEC db_x.dbo.P_x');