473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Connection to Access Db with a password?

Hi,

I have built an application that is driven by an access database. This is
then deplaoy onto about 80 clients through an installation package that also
proved a local copy of an emtyp database to start working with. This have
worked flawless.

Now I have added som information in this database that needs password
protection. I have set a password in access but now I cannot connect to it.
I get an error saying somethign about a Workgroup Information file

I tried reading
http://support.microsoft.com/?scid=k...d=2509&sid=307
...and understood about 0% on the contents.

Help! I need to use a password and also be 100% sure this still is
deployable, what is all this talk about mdw files and how to I prevent any
problems for local installations of my application?

Best Regards/
Lars Netzel
Apr 12 '06 #1
9 1504

Lars Netzel wrote:
Hi,

I have built an application that is driven by an access database. This is
then deplaoy onto about 80 clients through an installation package that also
proved a local copy of an emtyp database to start working with. This have
worked flawless.

Now I have added som information in this database that needs password
protection. I have set a password in access but now I cannot connect to it.
I get an error saying somethign about a Workgroup Information file

I tried reading
http://support.microsoft.com/?scid=k...d=2509&sid=307
..and understood about 0% on the contents.

Help! I need to use a password and also be 100% sure this still is
deployable, what is all this talk about mdw files and how to I prevent any
problems for local installations of my application?


There's two 'security' systems for Access DBs. The complex one with
workgroups and a system database is the one that that article is
talking about. The simple one - where you just set a password in Tools
| Security | Set Database Password - is probably the one you are
talking about. To answer your question,
<http://www.connectionstrings.com> says:

# Access

* OLE DB, OleDbConnection (.NET)
o Standard security:
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\somepath\mydb.mdb;User Id=admin;Password=;"
o Workgroup (system database):
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\somepath\mydb.mdb;Jet OLEDB:System Database=system.mdw;"
o With password:
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;"

--
Larry Lard
Replies to group please

Apr 12 '06 #2
mdb is obsolete; why do you still use it?

Apr 12 '06 #3
You might find the below link a little easier to understand:

http://support.microsoft.com/default...ent/secfaq.asp

If you're using mdw files you should use a connection string along the
lines of like
With myConnection
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Properties("Jet OLEDB:System database") = "c:\db\myWG.mdw"
.Open "Data Source="c:\db\myDB.mdb" & ";" _
& "User Id=myusername" & ";" _
& "Password=mypassword" & ";"

etc. (This is from some VB6 code.)

Using workgroup files (mdw) is surprisingly easy... once you get the
concept behind it that is. Just follow "1. What are the steps to help
protect a database?"

In particular, note that you have to remove rights from the built in
Admin account and Admins' group.

Lars Netzel wrote:
Hi,

I have built an application that is driven by an access database. This is
then deplaoy onto about 80 clients through an installation package that also
proved a local copy of an emtyp database to start working with. This have
worked flawless.

Now I have added som information in this database that needs password
protection. I have set a password in access but now I cannot connect to it.
I get an error saying somethign about a Workgroup Information file

I tried reading
http://support.microsoft.com/?scid=k...d=2509&sid=307
..and understood about 0% on the contents.

Help! I need to use a password and also be 100% sure this still is
deployable, what is all this talk about mdw files and how to I prevent any
problems for local installations of my application?

Best Regards/
Lars Netzel

Apr 12 '06 #4
I'm not so sure that's correct. Although I tend to use SQL Express for
small deployments quite a bit now mdb files still have their place IMHO.
What's great about them is that they're truly file based. So I can just
email and exe and an mdb file to an end user, they can save them on a
file server and they're off! No need to have someone who knows what
they're doing at the other end to install SQL Server.

Providing they have Office 2000 or greater they don't need to have
Access installed (maybe they don't even need that with .NET?). Unless
you know of a way whereby you

Sure, mdb files don't allow for fully fledged stored procedures for
example and have many other shortcomings when compared to a server
powered DB but I would say it's misleading to say it's obsolete.

[Caveat: unless I'm wrong and an MDF file can be accessed without a
server instance running?]

aa*********@gmail.com wrote:
mdb is obsolete; why do you still use it?

Apr 12 '06 #5
Did Microsoft make and announcement about mdb being obsolete that I missed?
--
Dennis in Houston
"aa*********@gmail.com" wrote:
mdb is obsolete; why do you still use it?

Apr 13 '06 #6
Dennis

it sounds to me like you missed the '90s and the 21st century.

MDB has been obsolete for many years now.

Anyone using MDB for anything should be fired on the spot.

-Aaron

Apr 13 '06 #7
Funny, I seem to be succeeding very well with a very large company (only made
a profit of 36 billion Plus last year) and we use access a lot! Maybe you
missed the boat as do most people who have your state of mind!
--
Dennis in Houston
"aa*********@gmail.com" wrote:
Dennis

it sounds to me like you missed the '90s and the 21st century.

MDB has been obsolete for many years now.

Anyone using MDB for anything should be fired on the spot.

-Aaron

Apr 13 '06 #8
yeah so you work for an oil company; big friggin deal

you spend all your time running around; using bandaids for when MDB is
'too big'
or 'query on top of query' and shit stops working

MDB is for babies and anyone using it anywhere should be fired on the
spot.

Apr 17 '06 #9
most people with my state of mind

shit kid; i did mdb for years.

i still use ACCESS every day.

I use ACCESS DATA PROJECTS because i love Access forms and reports--
they blow the socks off of this .NET garbage; it's just easier to get
shit done in access than anywhere else.

but for STORING MY DATA?
writing queries?

SQL Server all the way man.

Once you get more than a million records; start using Analysis
Services.

Apr 17 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Linus Nikander | last post by:
Having recently load-tested the application we are developing I noticed that one of the most expensive (time-wise) calls was my fetch of a db-connection from the defined db-pool. At present I fetch...
6
by: Paul Robinson | last post by:
I am developing a website in ASP that connects to a Sybase database. However, when I try to open a connection to the database the page will not load. The script does not timeout, nor the...
1
by: Zlatko Matić | last post by:
Hi! In MS Access/PostgreSQL combination I have login form. After user writes all neccessary inputs and push the button, a startup procedure creates DSN-less connection string, receates all linked...
1
by: Nigel C | last post by:
Access 2000 - A am trying to access another Access 2000 database from a code module. I have seen examples of the ADODB connection string - to connect to an access database however the database...
16
by: peshekeedweller | last post by:
Using asp.net 1.1. vb.net 2003. I am trying to connect to a remote sql server 2000 on a virtual machine running windows 2000 server. I can connect through the server explorer in visual studio,...
3
by: Greg Strong | last post by:
Hello All, Is there any way to close an ODBC connection via DSN without completely closing the Access front-end? I'm doing some testing with using Access as a front-end to Oracle 10g Express...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
13
by: Jennifer.Berube | last post by:
well I'm not sure how to go about making my SQL connection string... The code below is what I need to replace with my SQL connection...I just don't know if that code is for DSN or access... I...
1
by: dellis | last post by:
Problem: My project was initially created without putting passwords in the connection string. When I added the password in the connection string, it disappears when performing a database fill. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.