Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio SQL Server Object Explorer Not Saving Connections

I'm using Visual Studio 2012 for development. I really like using the SQL Server Object Explorer to work on database related tasks (queries, schema changes etc.). The issue is, every time I reload the IDE, I have to connect to the databases I work with. Is there a way to persist the list of databases like I can with the Server Explorer tab?

like image 862
Kingamoon Avatar asked Mar 01 '13 00:03

Kingamoon


People also ask

How do I save connections in SQL Server Management Studio?

Under the "View" menu, select "Registered Servers", and a new panel will appear. You can save servers in "Local Server Groups" (which is under "Database Engine") by right-clicking and selecting "New Server Registration". You can also select "New Server Group" if you want to organize your servers into groups.

How do you refresh an Object Explorer in SQL Server?

To update a folder cache, you can right-click the folder in Object Explorer and select Refresh (btw, you can also refresh individual folders, tables, columns, entire databases at once, and just about anything you see listed in Object Explorer).

How do I get SQL Server Object Explorer in Visual Studio?

In Visual Studio, make sure that SQL Server Object Explorer is open. If it is not, click the View menu and select SQL Server Object Explorer.

How do I use SQL Server Object Explorer?

Configuring Object Explorer Options To configure the Object Explorer settings, on the Tools menu, click Options, and then click SQL Server Object Explorer.


2 Answers

When you say you can't replicate, how long have you been using the explorer for to attempt to replicate it? It only loses the connections every now and then, so in fact right now I can't replicate it either, but over the next few days I'm sure they will get reset again!

It seems that there is something wrong with your VS IDE

It seems that this is a little bit unlikely as the same thing happened to me when I was running in VS 2012 beta running on Win 8 Release Preview too.

However I will try your suggestions and i'll see what happens, just to clarify are you saying that I run those commands once and then after that use VS as usual or are you saying that I try running in safe mode all the time?

Is reset settings same as the Import and Export settings->Reset All Settings menu item? (By the way I run with general development settings)

Anyone know where these connection settings are actually stored (registry, folder ...)?

like image 136
user2461160 Avatar answered Sep 28 '22 19:09

user2461160


Open VS. Don´t open any project or solution. Add your databases in the Server Explorer. Then File -> Save All

like image 36
Diego Avatar answered Sep 28 '22 19:09

Diego