<?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: Create SQL views based on SQL Managed Instance in Synapse in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4036418#M2960</link>
    <description>&lt;P&gt;Hello Yang!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, however, when executing the following code I get the error message "Icorrect syntax near 'RDBMS'. Can you help out here?&lt;/P&gt;&lt;P&gt;Do I need certain permissions? What about CETAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dinosauris_0-1720685412358.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1130421i9FDEB9660601EE0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dinosauris_0-1720685412358.png" alt="Dinosauris_0-1720685412358.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Iris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 08:11:09 GMT</pubDate>
    <dc:creator>Dinosauris</dc:creator>
    <dc:date>2024-07-11T08:11:09Z</dc:date>
    <item>
      <title>Create SQL views based on SQL Managed Instance in Synapse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4031896#M2912</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have integrated the SQL managed instance into my Synapse environment and I can create a linked dataset which works as expected. However, what I want is to create views in an SQL view or external table via the lake-, or sql databse without having to copy the data first into a blob storage for example.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dinosauris_0-1720508848341.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1128926i3AEF3F1D4C1348AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dinosauris_0-1720508848341.png" alt="Dinosauris_0-1720508848341.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="Dinosauris_0-1720509057420.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1128931iF6F6152FEE72A45C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dinosauris_0-1720509057420.png" alt="Dinosauris_0-1720509057420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I create an external table to do so or access via SQL statement directly the tables from the SQL managed instance without having to copy the data to another place first?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final goals is to create SQL views based on it which can further be accessed from Customer Insights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4031896#M2912</guid>
      <dc:creator>Dinosauris</dc:creator>
      <dc:date>2024-07-09T07:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create SQL views based on SQL Managed Instance in Synapse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4033639#M2926</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/693721"&gt;@Dinosauris&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can use &lt;STRONG&gt;Mirroring&lt;/STRONG&gt;, which is a low-cost, low-latency solution in Fabric that brings together data from different systems into a single analytics platform. Existing data assets can be continuously replicated to Fabric's OneLake, including data in Azure SQL Database, Azure Cosmos DB, and Snowflake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the latest data provided by OneLake in a queryable format, you can now use various services in Fabric, such as running analysis with Spark, executing notebooks, data engineering, visualization through Power BI reports, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more information about Mirroring, refer to the following official documents:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/database/mirrored-database/overview" target="_blank"&gt;Mirroring - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data is already in the fabric, it is more convenient to call the &lt;STRONG&gt;Shortcuts&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more information about shortcuts, see:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/onelake/onelake-shortcuts" target="_blank"&gt;OneLake shortcuts - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to use SQL statements, you can use the CREATE EXTERNAL DATA SOURCE statement to define the data source information and reference the SQL managed instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the CREATE EXTERNAL TABLE statement to define the table schema and link it to the external data source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;-- Create an external data source
CREATE EXTERNAL DATA SOURCE SqlManagedInstance
WITH (
    TYPE = RDBMS,
    LOCATION = 'your-managed-instance.database.windows.net',
    DATABASE_NAME = 'your-database-name',
    CREDENTIAL = 'your-credential'
);

-- Create an external table
CREATE EXTERNAL TABLE dbo.YourExternalTable
(
    Column1 INT,
    Column2 NVARCHAR(50),
    -- Define other columns as needed
)
WITH (
    DATA_SOURCE = SqlManagedInstance
);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try these methods to see if they solve your needs.&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>Wed, 10 Jul 2024 04:04:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4033639#M2926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T04:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create SQL views based on SQL Managed Instance in Synapse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4036418#M2960</link>
      <description>&lt;P&gt;Hello Yang!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, however, when executing the following code I get the error message "Icorrect syntax near 'RDBMS'. Can you help out here?&lt;/P&gt;&lt;P&gt;Do I need certain permissions? What about CETAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dinosauris_0-1720685412358.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1130421i9FDEB9660601EE0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dinosauris_0-1720685412358.png" alt="Dinosauris_0-1720685412358.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Iris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 08:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4036418#M2960</guid>
      <dc:creator>Dinosauris</dc:creator>
      <dc:date>2024-07-11T08:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create SQL views based on SQL Managed Instance in Synapse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4058697#M3242</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Your first step is to create a database where the tables will be created. Before creating a database scoped credential, the database must have a master key to protect the credential.&lt;BR /&gt;&lt;BR /&gt;CREATE DATABASE SCOPED CREDENTIAL SqlMICredential&lt;BR /&gt;WITH IDENTITY = 'your-username',&lt;BR /&gt;SECRET = 'your-password';&lt;BR /&gt;&lt;BR /&gt;2)create an external data source that points to your SQL Managed Instance.&lt;BR /&gt;&lt;BR /&gt;CREATE EXTERNAL DATA SOURCE SqlMIDataSource&lt;BR /&gt;WITH (&lt;BR /&gt;&amp;nbsp; &amp;nbsp; TYPE = RDBMS,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LOCATION = '&lt;A href="http://your-sql-mi-server.database.windows.net" target="_blank" rel="noopener nofollow noreferrer"&gt;your-sql-mi-server.database.windows.net&lt;/A&gt;',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DATABASE_NAME = 'your-database-name',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CREDENTIAL = SqlMICredential&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3). create an external table that maps to the table in your SQL Managed Instance.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;CREATE EXTERNAL TABLE dbo.YourExternalTable&lt;BR /&gt;(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Column1 datatype,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Column2 datatype,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ...&lt;BR /&gt;)&lt;BR /&gt;WITH (&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DATA_SOURCE = SqlMIDataSource,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LOCATION = 'schema-name.table-name'&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE- for better Understanding, you can follow this link also&lt;BR /&gt;link - &lt;A href="https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/create-use-external-tables" target="_blank" rel="noopener nofollow noreferrer"&gt;https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/create-use-external-tables&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; and help other users find the solution quickly. Please hit the LIKE &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; button if this comment helps you.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 10:04:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Create-SQL-views-based-on-SQL-Managed-Instance-in-Synapse/m-p/4058697#M3242</guid>
      <dc:creator>Ray_Minds</dc:creator>
      <dc:date>2024-07-24T10:04:42Z</dc:date>
    </item>
  </channel>
</rss>

