Jump to content

Lesson Learned #307:Reference to database and/or server name is not supported in this version


Recommended Posts

Guest Jose_Manuel_Jurado
Posted

Our customer got the following error message: Msg 40515, Level 15, State 1, Line 19 - Reference to database and/or server name in 'DbName.dbo.TableName' is not supported in this version of SQL Server, executing the following TSQL: select * into [DbName].[dbo].[TableName] from [TableName2]

 

 

 

As we mentioned, in this URL: Cross-database Query in Azure SQL Database. This requires accessing tables on different DBs using 3 part naming that is not possible in Azure SQL Database but in Azure SQL Managed Instance is possible.

 

 

If we need to use Azure SQL Database, the recomendation is to use external tables - Cross-database Query in Azure SQL Database

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...