<?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: New Fabric SQL Datasbase does not let me CREATE TABLE from SSMS in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/New-Fabric-SQL-Datasbase-does-not-let-me-CREATE-TABLE-from-SSMS/m-p/4316245#M5509</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/270"&gt;@ToddChitt&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently unable to create a SQL database in Fabric, but found the same thing when connecting to the data warehouse in SSMS.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_0-1733454604673.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210867i0A2B0DA13AEB5490/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_0-1733454604673.png" alt="vhuijieymsft_0-1733454604673.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_1-1733454604674.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210866i10263015F310BC07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_1-1733454604674.png" alt="vhuijieymsft_1-1733454604674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This error message indicates that an external policy denial was encountered while executing the CREATE TABLE statement. This usually means that the current privileges are insufficient to perform the operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, use the following statement in SSMS to query the user currently in use.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT SYSTEM_USER.&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_2-1733454621712.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210870iD4D5D73FE55E8F3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_2-1733454621712.png" alt="vhuijieymsft_2-1733454621712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a SQL query in Fabric warehouse and assign the db_owner role to the current user using the following statement.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;USE [warehouseTest1]; -- Replace with your database name

-- Grant db_owner role to the user
ALTER ROLE db_owner ADD MEMBER [Yanghuijie@M365x21440024.onmicrosoft.com]; -- Replace with your username&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_3-1733454621715.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210869iA218F55AAF0CA364/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_3-1733454621715.png" alt="vhuijieymsft_3-1733454621715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now go back to SSMS and you can create the table. The result is shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_4-1733454652865.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210873iAFFD18706B8F469A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_4-1733454652865.png" alt="vhuijieymsft_4-1733454652865.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;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;</description>
    <pubDate>Fri, 06 Dec 2024 03:14:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-12-06T03:14:48Z</dc:date>
    <item>
      <title>New Fabric SQL Datasbase does not let me CREATE TABLE from SSMS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/New-Fabric-SQL-Datasbase-does-not-let-me-CREATE-TABLE-from-SSMS/m-p/4315509#M5506</link>
      <description>&lt;P&gt;I just now provisioned a Fabric Workspace (under a Trial license). I provisioned a Fabric SQL Database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like I do with all other Fabric Workspaces, I copy the SQL Connection String and set up a new Registered Server in SQL Server Management Studio. Behind this SQL Endpoint I have access to the Fabric Warehouses, Lakehouses, and now the SQL Databases.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BUT, I cannot issue a CREATE TABLE statement from within SSMS. I get a permissions error. The same statement can be run in either a Lakehouse or a Warehouse in the same Fabric Workspace. I am an Admin in the workspace, and I was the one to create the SQL database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can do a CREATE TABLE statement from within the Fabric browser interface with the SQL Database, but NOT from SSMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see this as a BUG, either from the standpoint of Fabric or of SSMS.&lt;/P&gt;
&lt;P&gt;I discovered this by trying to create and run a Copy Job (Preview) and use my Fabric SQL Database as the destination. This failed with the same permissions issue. Since this was all Fabric, I'm leaning to a Fabric issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone run accross this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 15:43:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/New-Fabric-SQL-Datasbase-does-not-let-me-CREATE-TABLE-from-SSMS/m-p/4315509#M5506</guid>
      <dc:creator>ToddChitt</dc:creator>
      <dc:date>2024-12-05T15:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: New Fabric SQL Datasbase does not let me CREATE TABLE from SSMS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/New-Fabric-SQL-Datasbase-does-not-let-me-CREATE-TABLE-from-SSMS/m-p/4316245#M5509</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/270"&gt;@ToddChitt&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently unable to create a SQL database in Fabric, but found the same thing when connecting to the data warehouse in SSMS.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_0-1733454604673.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210867i0A2B0DA13AEB5490/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_0-1733454604673.png" alt="vhuijieymsft_0-1733454604673.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_1-1733454604674.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210866i10263015F310BC07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_1-1733454604674.png" alt="vhuijieymsft_1-1733454604674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This error message indicates that an external policy denial was encountered while executing the CREATE TABLE statement. This usually means that the current privileges are insufficient to perform the operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, use the following statement in SSMS to query the user currently in use.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT SYSTEM_USER.&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_2-1733454621712.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210870iD4D5D73FE55E8F3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_2-1733454621712.png" alt="vhuijieymsft_2-1733454621712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a SQL query in Fabric warehouse and assign the db_owner role to the current user using the following statement.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;USE [warehouseTest1]; -- Replace with your database name

-- Grant db_owner role to the user
ALTER ROLE db_owner ADD MEMBER [Yanghuijie@M365x21440024.onmicrosoft.com]; -- Replace with your username&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_3-1733454621715.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210869iA218F55AAF0CA364/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_3-1733454621715.png" alt="vhuijieymsft_3-1733454621715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now go back to SSMS and you can create the table. The result is shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vhuijieymsft_4-1733454652865.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210873iAFFD18706B8F469A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vhuijieymsft_4-1733454652865.png" alt="vhuijieymsft_4-1733454652865.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;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;</description>
      <pubDate>Fri, 06 Dec 2024 03:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/New-Fabric-SQL-Datasbase-does-not-let-me-CREATE-TABLE-from-SSMS/m-p/4316245#M5509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-06T03:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: New Fabric SQL Datasbase does not let me CREATE TABLE from SSMS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/New-Fabric-SQL-Datasbase-does-not-let-me-CREATE-TABLE-from-SSMS/m-p/4317175#M5524</link>
      <description>&lt;P&gt;With Fabric SQL Databases being so new, there WILL be learning curves (and bumps in the road) as we, the community struggle to adopt them and learn of the nuance differences. One key difference is the Connection Strings.&lt;/P&gt;
&lt;P&gt;I have been using the Connection String from a Fabric Warehouse or Lakehouse in SSMS for quite some time (I usually set up Registered Servers for them.) And that Connection String exposes all of the database type objects under one server. You can even run cross-database queries if you want to move data from a Lakehouse to a Warehouse. And the new Fabric SQL Database is also there. But it is NOT there as a typical SQL Database because the SQL Endpoint is an ANALYTIC Endpoint.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you open the SQL Database in the browser, then click "Open in"&amp;nbsp; &amp;gt;&amp;gt; "SQL Server Management Studio":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ToddChitt_0-1733493998948.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1211185iE15916C891B9D7BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ToddChitt_0-1733493998948.png" alt="ToddChitt_0-1733493998948.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You get a dialog that shows the SQL Endpoint and a Database name (which is your database plus a GUID after it).&lt;/P&gt;
&lt;P&gt;Compare this connection string to the one from the Lakehouse endpoint. They will be different:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ToddChitt_1-1733494133434.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1211186i14764FBF58FF1B08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ToddChitt_1-1733494133434.png" alt="ToddChitt_1-1733494133434.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(same 'server' GUID, but different suffixes)&lt;/P&gt;
&lt;P&gt;Behind the DATABASE Endpoint you have full SQL Database capabilities: PRIMARY KEYS, INDEXES, etc.&lt;/P&gt;
&lt;P&gt;Behind the ANALYTIC/DATA WAREHOUSE Endpoint you have ANALYTIC capabilities.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One allows CREATE TABLE and one does not. But same data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Microsoft is still working on things like removing the GUID from the SQL Endpoint Database name, and other minor bugs.&lt;/P&gt;
&lt;P&gt;This was an invaluable revelation for me pointed out by someone in the forums.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 14:14:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/New-Fabric-SQL-Datasbase-does-not-let-me-CREATE-TABLE-from-SSMS/m-p/4317175#M5524</guid>
      <dc:creator>ToddChitt</dc:creator>
      <dc:date>2024-12-06T14:14:35Z</dc:date>
    </item>
  </channel>
</rss>

