Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

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]...
  • AndyDDC's avatar
    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