Access Security

G

Guest

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...
 
L

Lynn Trapp

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.

If Access is creating another .mdw file when you open the database, then
something is "rotten in Denmark." It should only create a new .mdw file if
there is not one on the computer. If you open the database with using the
/wrkgrp switch, then it should not be creating a new one.
My
question is.. is there a way to open the
database using the other ".mdw"

If you secured the database properly, then you should only be able to open
the database using the .mdw file that was used in securing the database. Did
you follow all the steps outlined in the Security FAQ?
 
G

Guest

I'm developing a C# window based application. I'm using a Access Database, I
want to secure the database so that only the program can access. From MSDN
website, I have used the "User Level Security" wizard to generate an .mdw
file. This secures the database so that no one can access it; however, the
program can no longer access the database.

Thansk for your reply. Is there anyway else anyone can provide more infos?
 
B

Brendan Reynolds

You can specify the workgroup file to be used in the connection string ...

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and
Settings\Brendan Reynolds\My Documents\Northwind.mdb;Persist Security
Info=False;Jet OLEDB:System database=c:\dsdata\test.mdw

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top