Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


SQL 2005 Linked server showing more than 1 database in catalog

Posted on 2009-05-01
Medium Priority
Last Modified: 2012-06-27
Hi experts - added a new linked server in a SQL2005 instance so that developers could read from the tables on another instance.  Security credentials are setup to use a remote login which has been created on the server and tests ok.  The remote login only has READ access to one database on that particular instance.

The issue is that on the instance where the linked server was created if you expand the catalog section - it shows 2 different databases as being able to be browsed using this linked server.  I cant see any login for the 2nd database that is not required and would ideally like to remove it so that only the database that the developers are supposed to have access to show up there.  

Anyone got any ideas why this is happening?
Question by:BravehearT-1326

Accepted Solution

ezraa earned 500 total points
ID: 24281226
make sure that the login on the remote server doesn't have the "view any database" permission at the server level.



Author Closing Comment

ID: 31576928
Many thanks - worked a treat. :)

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question