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 9224983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:27:54+00:00 2026-06-18T04:27:54+00:00

I want my users not to be able to see the MS Access *.accdb

  • 0

I want my users not to be able to see the MS Access *.accdb Database I am using. Therefore would I like to embed it into the assembly. How should I do this?

My guess is to modify the connection string.

The connection to the database has been automatically made with the import wizard. The connection string can be found in the file Settings.Designer.vb and has been written like this:

Global.System.Configuration.ApplicationScopedSettingAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Configuration.SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString), _
Global.System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\MyDatabase.accdb;" & "Persist Security Info=True")

Is there a way I could change Data Source=|DataDirectory|\MyDatabase.accdb (last line, scroll right) to something else?

I found an article on how embed resources, but they seem not to apply to a connection string. Furthermore, it seems that (at least in 2008), to access an MS Access Database, it had to be taken out of its embedded state. This would make useless this embedding in my program.

Any help greatly appreciated.

  • 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-06-18T04:27:56+00:00Added an answer on June 18, 2026 at 4:27 am

    I confirm: to try to embed a database into an assembly does not make sense if the purpose is to hide it.

    As an assembly is a static structure, no bit can be changed in it. So something as dynamic as a database definitely has to be taken out of the assembly before it can be used.

    In order my users not to see the database I am using, I opted for the solution to copy it into the &AppData& directory. Not very secure (despite the password protection) but at least not obvious.

    Have a look at this answer to see how.

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

Sidebar

Related Questions

Users have been able to log into my website using their Facebook account, but
I would like to allow users of my website see a special Image/Video/HTML but
I would like to create a folder that users who do not have privileges
I want to only allow users with IE8 (not IE6, IE7) or another browser
I want to have users be able to upload .pdf and images and restrict
I want to be able to securely authenticate users on my site from any
I have a site, into which users log in using forms authentication, in which
I want to be able to retrieve a users calendar and events from the
I am using Ruby on Rails 3 and I would like to handle user
The user does not want to receive the approval emails in Salesforce. Is there

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.