473,802 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1526

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.connections trings.com> says:

# Access

* OLE DB, OleDbConnection (.NET)
o Standard security:
"Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=\somepat h\mydb.mdb;User Id=admin;Passwo rd=;"
o Workgroup (system database):
"Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=\somepat h\mydb.mdb;Jet OLEDB:System Database=system .mdw;"
o With password:
"Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=\somepat h\mydb.mdb;Jet OLEDB:Database Password=MyDbPa ssword;"

--
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("Je t OLEDB:System database") = "c:\db\myWG.mdw "
.Open "Data Source="c:\db\m yDB.mdb" & ";" _
& "User Id=myusername" & ";" _
& "Password=mypas sword" & ";"

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*********@gma il.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*********@gm ail.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*********@gm ail.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
6125
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 my connections using : private Connection getConnection() throws SQLException { try { Context jndiCntx = new InitialContext(); DataSource ds = (DataSource)
6
7277
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 connection. Further, the Sybase server shows no connection. Because the page is hanging I am unable, with my limited knowledge, to query the error collection. After many tries I will get an error page ...HTTP 403.9 Access forbidden: Too many users are...
1
2495
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 tables and change connection string in all pass-through queries. It works nice... But, how to achieve LOGOUT ? I would like to allow users to login/logout consecutively from MS Access front-end without need to close front-end. I tried to perform...
1
20444
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 that I am connecting to has a database password - I get an error message when attempting to specify the 'connect' parameter. The following is an example...
16
2319
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, but cannot connect through code. I have done it before and can not do it now; I don't know what changed. (I also cannot connect to local Access database through code though I can from server explorer.) The code is: conn = New SqlConnection("data...
3
12958
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 edition. When the user ID and password is entered on a form and after a successful connection it seems Access doesn't change the connection. Even if I enter an invalid user ID and/or password the connection continues to work.
8
9643
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 work from
13
2850
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 don't want to use DSN just a connection string...help? function GetConnection() const DSN = "membershipdb" const UID = "webuser"
1
2620
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 have stepped through the code in debug and the connection string is correct up til the Fill command. Once the fill executes, the password disappears from the connection string. This particular Fill is performed to check that the user is valid for this...
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10542
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10068
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9119
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5496
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4274
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2968
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.