Forum Discussion
Anonymous
2 years agoNot applicable
Unable to read SQL Endpoint view into a Notebook dataframe
Hi All, We are seeking to use a view within a SQL analytics Endpoint as a source of data for a dataframe in a notebook. When we seek to query it, we see an error like [TABLE_OR_VIEW_NOT_FOUND]...
- 2 years ago
Hi Anonymous no I don't believe this will work as the View has been created using the SQL Analytics endpoint, there is no metadata sync from the SQL Endpoint to the Lakehouse (it's the other way round).
You could use JDBC connector in the Notebook to query the View in the SQL Endpoint, or create the View in the Lakehouse using Spark.
edit: I believe pyodbc would work here
AndyDDC
2 years agoMost Valuable Professional
Does this help at all? https://community.fabric.microsoft.com/t5/General-Discussion/authenticate-to-Fabric-Data-Warehouse-with-Service-Principal/td-p/3467512
SorenSparso
2 years agoAdvocate I
Hi,
Yes, that helped, thanks 🙂
I had to add the serviceprincipal to the workspace (CREATE USER is not a supported statement type.) but after that, I can now read views in a Lakehouse from a Notebook.