<?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 Connect Fabric database from R studio in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4132460#M3894</link>
    <description>&lt;P&gt;How to connect Fabric lakehouse db from R studio?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have this requirement to access lakehouse db from within R studio. I searched and didnt find anything related to this, is there any workaround for this currently?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2024 04:58:51 GMT</pubDate>
    <dc:creator>Vinodh247</dc:creator>
    <dc:date>2024-09-04T04:58:51Z</dc:date>
    <item>
      <title>Connect Fabric database from R studio</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4132460#M3894</link>
      <description>&lt;P&gt;How to connect Fabric lakehouse db from R studio?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have this requirement to access lakehouse db from within R studio. I searched and didnt find anything related to this, is there any workaround for this currently?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 04:58:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4132460#M3894</guid>
      <dc:creator>Vinodh247</dc:creator>
      <dc:date>2024-09-04T04:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Fabric database from R studio</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4132908#M3900</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/640329"&gt;@Vinodh247&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The following post tries to use RStudio to connect to Endpoint, you can try to test the connection using her method, whether this can give you inspiration.&lt;BR /&gt;&lt;A href="https://forum.posit.co/t/microsoft-fabric-to-rstudio-desktop/172719/2" target="_blank" rel="noopener"&gt;Microsoft Fabric to RStudio Desktop - RStudio IDE - Posit Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, the current version of Notebook supports the use of Visual Studio, so you can try using it too.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyaningymsft_0-1725438724147.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1161977i5E89B381CCE2CE91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyaningymsft_0-1725438724147.png" alt="vyaningymsft_0-1725438724147.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7Cce16d19809414d9f960208dbf1755128%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638369258411601530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=oBisEpJnsk4p%2BcSV0F8sZ%2BFQHR%2FRvYA8sUWZIEcjQ4o%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7Cce16d19809414d9f960208dbf1755128%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638369258411609718%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=sCaEt5xd5uTLXCby0%2B1XhR9V7RXxZLDCF088%2F9u%2FOUU%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 07:58:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4132908#M3900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-19T07:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Fabric database from R studio</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4215620#M4416</link>
      <description>&lt;P&gt;As an R user i would suggest you to use DBI and dbplyr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- You can retrieve sql endpoint of that lakehouse&lt;BR /&gt;- Create a Service Principal in Azure and use it as a "super user" (&lt;A href="https://learn.microsoft.com/it-it/entra/identity-platform/app-objects-and-service-principals?tabs=browser" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/it-it/entra/identity-platform/app-objects-and-service-principals?tabs=browser&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# r code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;driver &amp;lt;- "ODBC Driver 18 for SQL Server"
server &amp;lt;- "put here the sql end point of lakehouse"
database &amp;lt;- "lakehouse, ie database name"
authentication &amp;lt;- "ActiveDirectoryServicePrincipal"
encrypt &amp;lt;- "True"
userid &amp;lt;- "id of the Service Principal"
password &amp;lt;- "Password of the Service Principal"
port &amp;lt;- 1433

connection_string &amp;lt;- glue("Driver={driver}; Server={server}; UID={userid}; PWD={password}; Port={port}; Database={database}; Encoding=UTF-8; Authentication={authentication}")

con &amp;lt;- DBI::dbConnect(odbc::odbc(), .connection_string = connection_string)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a clean way and you can read tables also from outside MS Fabric, however, as far as I discovered, you won't be able to write but only to read&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 17:43:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4215620#M4416</guid>
      <dc:creator>FlavioLeccese</dc:creator>
      <dc:date>2024-10-03T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Fabric database from R studio</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4233112#M4487</link>
      <description>&lt;P&gt;Similar to the above two posts, we've used the ODBC driver.&amp;nbsp; For the proof of concept I used the AZ command line interface (AZCLI) tool to get a token as a user (so authenticating via web client) and then using that token with DBI.&lt;BR /&gt;(Incidentally, this is also how I've got the initial Fabric -&amp;gt; Alteryx connection working until I get the ADFS connection behaving)&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 07:52:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Connect-Fabric-database-from-R-studio/m-p/4233112#M4487</guid>
      <dc:creator>spencer_sa</dc:creator>
      <dc:date>2024-10-08T07:52:26Z</dc:date>
    </item>
  </channel>
</rss>

