简体   繁体   中英

Can't retrive data from Azure Database

So I'm connected to an Azure SQL Database in Visual Studio, but for some reason I can't seem to be able to retrieve anything from the database itself, it keeps loading infinity.

Here's what I see in the SQL Server Object Explorer: 数据库,系统表和表旁边的无限加载循环

If I right click the database and View Code it says it couldn't retrieve the definition of the database from the server.

数据库.sql文件中的错误

If I go to the Data Connections within the Server Explorer I can see the database and I can see the tables, but I still can't see any data or definitions, getting the same error as the previous one.

I've tried reinstalling multiple versions of Visual Studio 2017 and 2019, I've tried enabling/disabling firewalls, windows defenders, anything that might interfere with the connection, but still no success.

I have tried opening it on a different computer, and it works, it just doesn't seem to work on my laptop which is more than capable of handling this kind of work.

Could you please try this simple solution, it worked for me long back.

Make sure you check the "Save my password" checkbox when you add new database connection view picture.

在此输入图像描述

Also add Persist Security Info=True; to my connection string in web.config.

Please try and see if it helps.

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