I have sql server management studio (SSMS) v18.9.1 and visual studio 2022 v17.1.1.
I'm using EF Migrations (dotnet 6) and after making changes to the pocos, I run add-migration followed by update-database from the package manager console window in visual studio.
If I try to refresh SSMS by right-clicking\Tables\Refresh I'm presented with SSMS Tables (expanding...) message. The table do eventually appear but this can take up to 10 minutes.
My colleague is experiencing the same behaviour on his laptop.
Any ideas how to fix?
if you are accessing your local database it will be fast. if you accessing azure or cloud database it will take time based on load. it will not occur often.
Related
I am working on a database (Local server install), that I have been working on for some time. Lately though I have had issues whenever I try to build a database diagram.
I can insert one table, but when I try to drag another table from the object explorer into the diagram (From the same database), SSMS freezes with this pop-up
My only option is to force close SSMS.
I have tried dropping and recreating the database, but same problem
I am running SSMS v. 18.1 32 bit and SQL Server 2017 64bit
I have recently updated SSMS, could it be a 32bit-64bit issue?
So I made a data on sql server manangement studio 2012. When I went to access that data in visual studio and gave me an error and told me I needed to upgrade database. Which it asked and I said yes. So I worked with the database a little and inserted a couple of cells from Visual studio and now when i log back over to management studio the database is stuck in recovery pending. Is there a way to fix this? This is localdb so the files and mdf.
VS2015 is not the best suite for SSMS 2012, it will bring the compatible issue, for example, the integration service, etc. Switch to use VS2012, and if your database is in Restoring status for long time for small size database, most likely you did not use With recovery when you Restore the database because the database is waiting for the latest Transaction Log, you could try Restore Database [YourDatabase] with Recovery, and then refresh it, should be good.
PS :you could add STATS to track the progress just in case that database is still being restored.
Are we going back to green command prompts in place of the GUI. I like the cloud sql database but I also like the GUI of management studio of traditional SQL databases of the past. Its a major cut in productivity going back to scripting what you used to be able to see in a GUI. Visual Studio database designer fails almost 95% upon loading when connecting to an Azure cloud SQL database. In fact that surface designer will only load local databases and that is a 60 second plus struggle of crossing your fingers. So visual studio 2012 to 2013 is a not a valid until some awake folks at Microsoft decide to make that a working reality.
What work a rounds are there to view and/or design cloud SQL databases. Keys, constraints indexes, etc..
Looks like you can do it by latest update of SSMS 2014
SQL Server 2014 Management Studio - updated support for the latest Azure SQL Database Update V12 (preview)
I used to be able to see all databases in the SQL Server Object Explorer in Visual studio 2012. I dropped one of the main databases that I used to work with in VS, now I can no longer see any of the other databases.
I can connect to the Server (SQL Server 2012) but the database tree is empty.
Screen shot:
How do I restore seeing the databases?
I am posting the answer after 5 years as this potential bug is still a repro with VS2019. Apparently the issue seems to be with the database selected while adding the server.
To solve this issue, leave the database name to default as below. I will be following up with the VS team in the meantime.
Okay, found the answer:
I needed to set a default database in SQL Server using Management Studio.
As soon as I did this and connected to a server in Visual Studio, the databases appeared in the Object Explorer in Visual studio.
How to set the default database: You simply go to: Security --> Select your login --> properties --> select default database.
I was in a middle of designing a website when suddenly Database Diagram folder just disappeared from the Database Explorer. I have no idea what happened and what to do right now, as I desperately need it to continue my work - adding tables to database manually are not an option for me.
I've been seeking for the solution for a whole day, and I even re-installed the Visual Studio and local IIS server, but it wasn't helpfull at all.
Is there any way to bring the feature back or at least is there any free tool that would work on Windows 8 x64 and has diagram-based database designer for MSSQL 2008?
EDIT
It seems that Microsoft removed the diagramming for purpose. Which is pretty logical in a business logic - why would somebody buy Server Management Studio if they have basic tool (diagramming) built in Visual Studio?
1) Database Diagram is a feature of SQL Server, not Visual Studio. I am not sure what VS uses to display that folder but you might want to verify with your DBA or check the configuration of the database to see if someone has not just disabled the ability to use diagrams. Have you tried refreshing your connection to the database server as well?
2) How is adding tables to a database manually not an option? If you get yourself dependent on doing things one way and only that one way you are setting yourself up for disaster in future projects, as you are in your current one. There are other ways from within VS to create a table, it just may not be a graphical picture that diagrams offers.
3) Have you looked at the database through SSMS to see if the diagrams folder shows up there?
Hello this has been my solution that worked for me and enabled me to use database diagram ide in visual studio 2012!!
First i installed SQL Server Management Studio. I then noticed that i still did not have SQLEXPRESS Service or SQL Agent Browser in my computer services either.. This was why i assume i couldn't login to any of the SSMS which was annoying. I then downloaded SQL Server Express R2 which then ran me though another setup which was fine. I did also choose to put a sql server password for SQL Server Express.
Once installed I double checked to make sure the services where running by right clicking MY COMPUTER / MANAGE / SERVICES -- scroll down till you see "SQL Server (SQLEXPRESS)" and make sure that the service has started and also "SQL Server Agent (SQLEXPRESS)" (this one was turned off when i checked) .. i was then able to login to SSMS without a problem.
I then created a new database, right clicked diagram like we always do in VS and created a diagram with two tables, created their relationships blah blah..
i then created a new website in vs 2012, i clicked "Connect To Database" in the SERVER EXPLORER"
I choose my server name, used windows authenication and selected the database i just created in SSMS.
Then to my suprise i now have database diagram designing in Visual Studio 2012.. Finally!
Thankyou microsoft for removing such a cool feature which now gives us developers a few things to do.
Hope this helps.