Link to home
Start Free TrialLog in
Avatar of lapucca
lapucca

asked on

Is there access restriction to attached database?

I attached to a database that was sent to me in form of mdf and log files.  I put these 2 files in the sql 2012 express' data folder.  I then was able to attach to the file.  It's just odd that the database would show up with name as c:\.....\its-database-name in Sql Management Studio.  It doesn't just show the database name.

I am able to open the database tables in Management Studio.

In the Security, my login, User Mapping, I can't give my self any permission except fore "Connect Sql".  

where can I enable remote connection?  I am not able to use C# code to open this database.
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

What's the size of the .mdf?
You can always try to detach and attach it again. Maybe something went wrong at the first time.
Avatar of lapucca
lapucca

ASKER

Very small database with 2 tables and less than 100 rows each.
In the Security, my login, User Mapping, I can't give my self any permission except fore "Connect Sql".  
Why this so?  Is it because this database wasn't originally created on my PC?
ASKER CERTIFIED SOLUTION
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lapucca

ASKER

Yes, I will post the screenshot this evening.