Hi @Chinh Phan ,
Azure SQL database doesn't support USE database or across database operations directly, even these databases are in the same Azure SQL Server.
Azure SQL database only support the across database query with elastic query. That still need many steps to achieve the across query. It's not supported to create table across the database. We must create a new connection(query session) on other databases.
Just for now, it's unsupported and we can not make this work.
In addition, cross-database and cross-instance queries using three or four part names. Three part names referencing the tempdb database and the current database are supported. Elastic query supports read-only references to tables in other MSSQL databases.
Please refer to transact-sql-tsql-differences-sql-server.
Regards,
Zoe
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.