<?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: Azure SQL db issue: Reference to database and/or server name is not supported in this version of SQL in SQL database</title>
    <link>https://community.fabric.microsoft.com/t5/SQL-database/Azure-SQL-db-issue-Reference-to-database-and-or-server-name-is/m-p/5118273#M634</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="594998" data-lia-user-login="WinterGarden" class="lia-mention lia-mention-user"&gt;WinterGarden&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As per my knowledge, You are using Azure SQL Database, and in this service cross-database queries are not supported. Even if DB1 and DB2 are on the same logical server, Azure SQL Database isolates each database, so you cannot use three-part naming like DB2.dbo.view2. That is why you are getting Msg 40515. To fix this, you must either use Elastic Query (create an external table to access DB2 from DB1), move both views into the same database, or use Azure SQL Managed Instance, which supports cross-database joins.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If you still have issue or doubts please do reach out to Azure SQL forum, they will help you on this.&lt;BR /&gt;&lt;A href="https://techcommunity.microsoft.com/category/azuredatabases/discussions/azuresql" target="_blank"&gt;Azure SQL | Microsoft Community Hub&lt;/A&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2026 09:30:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2026-02-25T09:30:40Z</dc:date>
    <item>
      <title>Azure SQL db issue: Reference to database and/or server name is not supported in this version of SQL</title>
      <link>https://community.fabric.microsoft.com/t5/SQL-database/Azure-SQL-db-issue-Reference-to-database-and-or-server-name-is/m-p/5115367#M632</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I've two views in two different Azure SQL database:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;[dbo].[view1] in DB1&lt;/LI&gt;&lt;LI&gt;[dbo].[view2] in DB2&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;both DB1 , DB2 is in the same server. I need to join these two views. When i ran the select query it is throwing the below error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Msg 40515, Level 15, State 1, Line 30&lt;/P&gt;&lt;P&gt;Reference to database and/or server name in 'DB2.dbo.view2' is not supported in this version of SQL Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my select query:&lt;BR /&gt;select top 10 * from [DB1].[dbo].[view1] t&lt;/P&gt;&lt;P&gt;left join [DB2].[dbo].[view2] cr on t.InternalGTECode = cr.New_Engagement_Mirror_Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried to run this query in both db as well as the master db.. but getting the reference error. Please help&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 13:14:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/SQL-database/Azure-SQL-db-issue-Reference-to-database-and-or-server-name-is/m-p/5115367#M632</guid>
      <dc:creator>WinterGarden</dc:creator>
      <dc:date>2026-02-23T13:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Azure SQL db issue: Reference to database and/or server name is not supported in this version of SQL</title>
      <link>https://community.fabric.microsoft.com/t5/SQL-database/Azure-SQL-db-issue-Reference-to-database-and-or-server-name-is/m-p/5118273#M634</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="594998" data-lia-user-login="WinterGarden" class="lia-mention lia-mention-user"&gt;WinterGarden&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As per my knowledge, You are using Azure SQL Database, and in this service cross-database queries are not supported. Even if DB1 and DB2 are on the same logical server, Azure SQL Database isolates each database, so you cannot use three-part naming like DB2.dbo.view2. That is why you are getting Msg 40515. To fix this, you must either use Elastic Query (create an external table to access DB2 from DB1), move both views into the same database, or use Azure SQL Managed Instance, which supports cross-database joins.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If you still have issue or doubts please do reach out to Azure SQL forum, they will help you on this.&lt;BR /&gt;&lt;A href="https://techcommunity.microsoft.com/category/azuredatabases/discussions/azuresql" target="_blank"&gt;Azure SQL | Microsoft Community Hub&lt;/A&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 09:30:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/SQL-database/Azure-SQL-db-issue-Reference-to-database-and-or-server-name-is/m-p/5118273#M634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-02-25T09:30:40Z</dc:date>
    </item>
  </channel>
</rss>

