Getting error USE statement is not supported to switch between databases with Azure Synapse formerly SQLDW

dba.stackexchange https://dba.stackexchange.com/questions/269742

문제

Whenever I attempt to submit a query to Azure Synapse SQLDB (or try to do anything with the database from my application called DBForge) I get the following error message:

USE statement is not supported to switch between databases

Can someone let me know how to overcome this issue?

올바른 솔루션이 없습니다

다른 팁

If you check out the documentation for the USE statement, you'll see that it is not supported for Azure Synapse Analytics (formerly Azure SQL DW).

To change database contexts, you'll have to open an explicit connection to the desired database.

If you're having issues with your IDE, try specifying the desired database in your connection string when you connect so there is no switching required.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top