Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7169513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:00:21+00:00 2026-05-28T15:00:21+00:00

I have created a database with 8 tables in SQL Server Management Studio on

  • 0

I have created a database with 8 tables in SQL Server Management Studio on Windows 7 as a non-admin user. In Visual Studio Express 2010 on the same user I am developing a WPF application that needs to access that database. However, the database file seems to be saved in C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA and I cannot access that file from Visual Studio’s Add Connection feature. Although I do have the admin password, files from that directory cannot be added. When I try to add it (after supplying the admin password) I get this message:

You don't have permission to open this file.
Contact the file owner or an administrator to obtain permission. 

Furthermore, during various stages of development I will need to create an .exe to send to a colleague for testing. Therefore, from what I understand the database needs to be included as a resource in the Visual Studio project. I have googled all day but found nothing relating to what I thought would be a common scenario. How can I add the database as a VS resource and access it from C#?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:00:23+00:00Added an answer on May 28, 2026 at 3:00 pm

    As a result of the comments….

    SQL Express will provide you with the functionality that you require. Whilst it requires the machine to have the engine installed it does allow instance mode where you can directly attach database files in the connection string.

    Additionally SQLExpress can be accessed via the MSSQL Management Studio tool (remember the default instance for this is .\SQLExpress

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database (using Microsoft SQL Server Management Studio Express) that is currently
I have created the necessary tables (aspnet_User,....) in Sql server Management Studio 2005 in
I have designed database tables (normalised, on an MS SQL server) and created a
Tables have been created in our SQL Server 2008 R2 database on a local server,
I have created a database test with some tables in MS SQL Server 2008
In our SQL Server 2005 database (tested using Management Studio with DBCC FREEPROCCACHE and
We have a SQL server database. To manipulate the data non-programmatically, I can use
I am using SQL Server 2008 Express and Sql Server Management Studio 2008. I
My SQL Server Management Studio suddenly went case sensitive on me. The database and
I have created a MySQL database using MySQL Workbench. It has about 20 tables.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.