Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Exporting server names

Author  Topic 

rmg1
Constraint Violating Yak Guru

256 Posts

Posted - 2012-10-19 : 08:26:39
Hi all

We're running SQL server 2008 R2 and I'd like to set up a sort of standard database list.
When I click on connect to database engine I get a list of the one's I've connected to in the past.
Is there any way of exporting these (possibly a registry entry?) so I can import the entire list for new users (who'll need the same list)?

Thanks for any help you can give.

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-10-19 : 09:32:50
Do you mean databases or Database Servers (i.e SQL server Instances) ?
To list SQL Server Instances with Powershell - reading Registry key - check http://www.sqlserver-dba.com/2012/06/list-sql-server-instances-with-powershell-remote-registry-search.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

rmg1
Constraint Violating Yak Guru

256 Posts

Posted - 2012-10-22 : 02:13:13
Sorry, it was database servers.
I've had a look at the Powershell script and tried to navigate to the key in the registry manually but it doesn't seem to exist.
We're running a variety of O/Ss (XP and 7) so I don't know if that will cause an issue.

All I really want to do is be able to export some sort of reg key (I already do this for a standard set of ODBC connections) so that all the relevant server instances are in the list when people log on.
Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2012-10-22 : 03:44:36
I don't know for sure but I think this is a part of windows and not sql server, just like autocomplete on a webpage. There might be some 3rd party tools though that might get you the info you want...Mladens SSMS ToolPack might have it in the query execution log maybe -> http://www.ssmstoolspack.com/

- Lumbago
My blog-> http://thefirstsql.com
Go to Top of Page

rmg1
Constraint Violating Yak Guru

256 Posts

Posted - 2012-10-22 : 04:25:07
I thought it would be a Windows regsitry setting somewhere but can't find it.
I'm hoping someone can point me in the right direction.
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-10-22 : 09:40:56
I don't know whether it's possible to export these lists from user to user. Basically, the list is stored on the rmu.dat file for 2005 or sqlstudio.bin for 2008. I've got some information here on deleting them , which are undocumented, but whether you can export these to other users , maybe dangerous , as I'm unclear on what other information in these dat file
http://www.sqlserver-dba.com/2012/10/sql-server-clear-list-of-server-names-on-sql-server-management-studio.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

rmg1
Constraint Violating Yak Guru

256 Posts

Posted - 2012-10-23 : 01:56:23
Hi all
Thanks for the suggestons so far, but I must have a really strange setup because the registry key doesn't exist and the .dat and .bin files don't exist on my machine either.
Is there anything else I can check?
Go to Top of Page
   

- Advertisement -