Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Access Security for window based

Access Security for window based

Scheduled Pinned Locked Moved C#
databasesecurityquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    caheo
    wrote on last edited by
    #1

    We have Access 2003, and we secured a database using "User Level Security Wizard". Now we have 2 ".mdw" files, the original one which we used to secure the database, and another one that is created when we open the database. Through connection string we open the database using the original one. My question is.. is there a way to open the database using the other ".mdw" (the one that is created by access when the databse opens) as this is the one that really enforce the security on the file. Bare in mind that this is a windows application class so everyone will have a copy of the original ".mdw" to be able to connect to the database...

    H 1 Reply Last reply
    0
    • C caheo

      We have Access 2003, and we secured a database using "User Level Security Wizard". Now we have 2 ".mdw" files, the original one which we used to secure the database, and another one that is created when we open the database. Through connection string we open the database using the original one. My question is.. is there a way to open the database using the other ".mdw" (the one that is created by access when the databse opens) as this is the one that really enforce the security on the file. Bare in mind that this is a windows application class so everyone will have a copy of the original ".mdw" to be able to connect to the database...

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      In the connection string you can specify the path to the correct MDW file using the "System Database" property, like:

      OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4; "

      • "User ID=anon;Password=;Data Source=C:\Data\Database.mdb; "
      • "System Database=C:\Data\Users.mdw");

      Any further questions specific to ADO.NET please post in the ADO.NET forum. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups