<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to read SQL Endpoint view into a Notebook dataframe in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3624048#M1068</link>
    <description>&lt;P&gt;Does this help at all?&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/authenticate-to-Fabric-Data-Warehouse-with-Service-Principal/td-p/3467512" target="_blank"&gt;https://community.fabric.microsoft.com/t5/General-Discussion/authenticate-to-Fabric-Data-Warehouse-with-Service-Principal/td-p/3467512&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 22:35:46 GMT</pubDate>
    <dc:creator>AndyDDC</dc:creator>
    <dc:date>2024-01-08T22:35:46Z</dc:date>
    <item>
      <title>Unable to read SQL Endpoint view into a Notebook dataframe</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3620974#M1065</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;We are seeking to use a view within a SQL analytics Endpoint as a source of data for a dataframe in a notebook.&lt;BR /&gt;&lt;BR /&gt;When we seek to query it, we see an error like&amp;nbsp;&lt;SPAN&gt; [TABLE_OR_VIEW_NOT_FOUND]&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;code looks like this. The view is under the DBO schema.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = spark.sql("SELECT * FROM lakehousename.viewname LIMIT 1000")
display(df)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Is this possible? I feel like it wont be :*(&amp;nbsp; but staying positive.&lt;BR /&gt;&lt;BR /&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 01:44:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3620974#M1065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-08T01:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read SQL Endpoint view into a Notebook dataframe</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3622455#M1066</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;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).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: I believe pyodbc would work here&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 22:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3622455#M1066</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2024-01-08T22:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read SQL Endpoint view into a Notebook dataframe</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3622675#M1067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you know how to get the authentication to work in the SQL endpoint? I have tried different combinations of below statement, but it is not working:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df = spark.read\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"jdbc"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .option(&lt;/SPAN&gt;&lt;SPAN&gt;"url"&lt;/SPAN&gt;&lt;SPAN&gt;, f&lt;/SPAN&gt;&lt;SPAN&gt;"jdbc:sqlserver://***.datawarehouse.pbidedicated.windows.net:1433;database=***"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .option(&lt;/SPAN&gt;&lt;SPAN&gt;"dbtable"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"someTable"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .option(&lt;/SPAN&gt;&lt;SPAN&gt;"authentication"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"ActiveDirectoryIntegrated"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .option(&lt;/SPAN&gt;&lt;SPAN&gt;"encrypt"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .option(&lt;/SPAN&gt;&lt;SPAN&gt;"clientid"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"***"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .option(&lt;/SPAN&gt;&lt;SPAN&gt;"hostNameInCertificate"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"*.pbidedicated.windows.net"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .load()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;display(df)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Jan 2024 12:20:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3622675#M1067</guid>
      <dc:creator>SorenSparso</dc:creator>
      <dc:date>2024-01-08T12:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read SQL Endpoint view into a Notebook dataframe</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3624048#M1068</link>
      <description>&lt;P&gt;Does this help at all?&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/authenticate-to-Fabric-Data-Warehouse-with-Service-Principal/td-p/3467512" target="_blank"&gt;https://community.fabric.microsoft.com/t5/General-Discussion/authenticate-to-Fabric-Data-Warehouse-with-Service-Principal/td-p/3467512&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 22:35:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3624048#M1068</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2024-01-08T22:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read SQL Endpoint view into a Notebook dataframe</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3626452#M1069</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that helped, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 12:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/3626452#M1069</guid>
      <dc:creator>SorenSparso</dc:creator>
      <dc:date>2024-01-09T12:45:12Z</dc:date>
    </item>
    <item>
      <title>Unable to read SQL Endpoint view into a Notebook dataframe</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/4008966#M2677</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can read data by using pyodbc package from endpoint. Now I would like to store these results in a delta table in lakehouse... is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 10:50:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/4008966#M2677</guid>
      <dc:creator>PunChili</dc:creator>
      <dc:date>2024-06-25T10:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read SQL Endpoint view into a Notebook dataframe</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/4256058#M4776</link>
      <description>&lt;P&gt;having the same issue here. a lot of people out there use sql statements stored in views to create there ETL logic. would be very nice if microsoft is going to support the possibility to read from views in a notebook. I came across the following example using the spark connector which works for me perfect as a workaround.&amp;nbsp;&lt;A href="https://fabric.guru/querying-sql-endpoint-of-fabric-lakehousewarehouse-in-a-notebook-with-t-sql" target="_blank"&gt;https://fabric.guru/querying-sql-endpoint-of-fabric-lakehousewarehouse-in-a-notebook-with-t-sql&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 09:11:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-read-SQL-Endpoint-view-into-a-Notebook-dataframe/m-p/4256058#M4776</guid>
      <dc:creator>daanblinde</dc:creator>
      <dc:date>2024-10-24T09:11:29Z</dc:date>
    </item>
  </channel>
</rss>

