We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I am trying to source some data from a SQL table in Fabric service.
I can access the table via SQL SSML, but not via Fabric, with the same user, getting the following error:
The SELECT permission was denied on the object...
I have a Fabric gateway to database xxxx in server S1, bu trying to source this data from a third database yyyyy in same server, through the advanced query option in Fabric (select * from yyyy.dbo.table).
It seems some access issue, but again I can access this table with the same user via SSML.
Any help?
Thanks
Solved! Go to Solution.
Hello @uk-roberto92,
Fabric queries run in the context of the gateway database, so even if your user works in SSMS, it needs explicit permissions in the target database. Grant SELECT on the table (or add the user to db_datareader) in yyyyy, then fully qualify the table in Fabric (yyyyy.dbo.table). This resolves the permission error.
Hi @uk-roberto92,
We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
@GilbertQ & @Olufemi7 ,Thanks for your prompt response
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support
Another recommendation I would highly recommend is to use SQL Profiler on your database so you can understand what user is trying to get in to your database and grant the associated permissions as listed above.
Hello @uk-roberto92,
Fabric queries run in the context of the gateway database, so even if your user works in SSMS, it needs explicit permissions in the target database. Grant SELECT on the table (or add the user to db_datareader) in yyyyy, then fully qualify the table in Fabric (yyyyy.dbo.table). This resolves the permission error.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.