<?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 Tabular model in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Tabular-model/m-p/3173618#M53678</link>
    <description>&lt;P&gt;&lt;SPAN&gt;First I Connect to the server and open the database that contains the model using the Server and Database classes in Microsoft.AnalysisServices.Tabular namespace.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I have used python&lt;/SPAN&gt;&lt;SPAN&gt;Copy code in Visual Studio Code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import clr&lt;/P&gt;&lt;P&gt;clr.AddReference('Microsoft.AnalysisServices.Tabular')&lt;/P&gt;&lt;P&gt;from Microsoft.AnalysisServices.Tabular import Server, Database&lt;/P&gt;&lt;P&gt;server_name = "localhost\\tabular"&lt;/P&gt;&lt;P&gt;database_name = "AdventureWorks"&lt;/P&gt;&lt;P&gt;server = Server()&lt;/P&gt;&lt;P&gt;server.Connect(server_name)&lt;/P&gt;&lt;P&gt;database = server.Databases.GetByName(database_name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Note :- &lt;FONT color="#000000"&gt;After Run the Code I was found error&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Thi ( clr.AddReference("Microsoft.AnalysisServices.Tabular")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;AttributeError: module 'clr' has no attribute 'AddReference'&amp;nbsp; )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please&amp;nbsp; solution this error&amp;nbsp; I have mentioned the error in red color text&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 10:55:23 GMT</pubDate>
    <dc:creator>Wani_Muneer</dc:creator>
    <dc:date>2023-04-05T10:55:23Z</dc:date>
    <item>
      <title>Tabular model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Tabular-model/m-p/3173618#M53678</link>
      <description>&lt;P&gt;&lt;SPAN&gt;First I Connect to the server and open the database that contains the model using the Server and Database classes in Microsoft.AnalysisServices.Tabular namespace.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I have used python&lt;/SPAN&gt;&lt;SPAN&gt;Copy code in Visual Studio Code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import clr&lt;/P&gt;&lt;P&gt;clr.AddReference('Microsoft.AnalysisServices.Tabular')&lt;/P&gt;&lt;P&gt;from Microsoft.AnalysisServices.Tabular import Server, Database&lt;/P&gt;&lt;P&gt;server_name = "localhost\\tabular"&lt;/P&gt;&lt;P&gt;database_name = "AdventureWorks"&lt;/P&gt;&lt;P&gt;server = Server()&lt;/P&gt;&lt;P&gt;server.Connect(server_name)&lt;/P&gt;&lt;P&gt;database = server.Databases.GetByName(database_name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Note :- &lt;FONT color="#000000"&gt;After Run the Code I was found error&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Thi ( clr.AddReference("Microsoft.AnalysisServices.Tabular")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;AttributeError: module 'clr' has no attribute 'AddReference'&amp;nbsp; )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please&amp;nbsp; solution this error&amp;nbsp; I have mentioned the error in red color text&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 10:55:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Tabular-model/m-p/3173618#M53678</guid>
      <dc:creator>Wani_Muneer</dc:creator>
      <dc:date>2023-04-05T10:55:23Z</dc:date>
    </item>
  </channel>
</rss>

