Solved

Is there access restriction to attached database?

Posted on 2014-11-09
4
53 Views
Last Modified: 2015-01-06
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.
0
Comment
Question by:lapucca
  • 2
  • 2
4 Comments
 
LVL 49

Expert Comment

by:Vitor Montalvão
ID: 40432236
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.
0
 

Author Comment

by:lapucca
ID: 40433964
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?
0
 
LVL 49

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 40434454
There's no "Connect Sql" permission.
Can you post a screenshot of that, please?
0
 

Author Comment

by:lapucca
ID: 40435322
Yes, I will post the screenshot this evening.
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

679 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