简体   繁体   中英

I can't use a database in SQL Azure

I am trying to use a Database in SQL Azure. I have installed SQL Server 2008. I can Login SQL Azure and can use master Database. But I can't use other Database and I can't see any things in my object explorer. It shows this error:

"USE statement is not supported to switch between databases. Use a new connection to connect to a different Database."

How can I use another database?

I found the Solution for this problem . I install SQL Server 2008 R2 . then every thing is ok...

您无法从SQL Azure链接到另一个数据库服务器,无论该SQL Server还是SQL Azure。

  1. You can first create only the database before running the whole script to create schemas & Tables.

  2. Then manually change the database to the new DB that was created.

  3. Run the rest of the script. Do not run Use <databasename>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM