Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello...

we are using microsoft sql server 2008 r2 express on server machine with instance name 'abc12'. this instance contains two databases as follows
1. alarm
2. report

but when we connect to 'abc12' instance from other pc on local area network. it shows only one database 'alarm' in this instance. it doesn't shows 'report' database on local area network pc.
how do i make that 'report' database accessible to other pcs on local area network.
please help me
Posted

1 solution

Hi,

Apparently you have some issues with the permissions.

Are you using a different login to connect to SQL Server from the other PC? If so, it might be that you don't have a required user in the "report" database. Try this:
1. Connect to SQL Server Management Studio on server machine.
2. Type and execute the following statements (replacing YourUser with the name of the login you're using to connect to SQL Server from the other PC):
SQL
USE [report];
GO

CREATE USER [YourUser] FOR LOGIN [YourUser];
GO

If the user already existed, then you should try to remap the login with the DB user:
SQL
USE [report];
GO

sp_change_users_login 'UPDATE_ONE', 'YourUser', 'YourUser';
GO

3. Connect to SQL Server Management Studio from the other PC and check it.

Also, take a look at this: User can't see database in SQL Server 2008 R2[^]

Please let me know if you need further assistance.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900