473,790 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS access ldb using vb.net

SBK
I'm having a problem:

I connect to an MS access db using jet oledb (it has a password). If the db
doesn't have a password, everything works fine. If i do, access gets locked
down (.ldb) with the access db 'Admin' user. Closing the Windows Form that
uses the oledbconnection has no effect on the ldb (even though i close the
connection etc). I can't delete the ldb manually or programatically (after
the .net appication is closed - the ldb disappears). Basically, I want to be
able to compact and repair the database everytime the application is closed.
I'm currently doing this using DAO (which doesn't have access to the db if
it's locked). So, is there a good solution that compacts the db via .net OR
can i somehow shut down the Admin user's use of the access db.

Thanks for any help
Jul 21 '05 #1
2 2173
My recommendation would be that if everything works fine without the
database password, then don't use it. The database password feature in
Access is absolutely useless. Anyone who is interested and capable of
doing a google search can bypass it easily. The totally illusory
"protection " it gives isn't worth the hassle. Even user-level Access
security, which is more complex to implement than the databse
password, can be circumvented via google. Basically the bottom line is
if you have sensitive data and/or serious security requirements, don't
use Access.

--Mary

On Tue, 9 Nov 2004 11:24:02 -0800, SBK <SB*@discussion s.microsoft.com >
wrote:
I'm having a problem:

I connect to an MS access db using jet oledb (it has a password). If the db
doesn't have a password, everything works fine. If i do, access gets locked
down (.ldb) with the access db 'Admin' user. Closing the Windows Form that
uses the oledbconnection has no effect on the ldb (even though i close the
connection etc). I can't delete the ldb manually or programatically (after
the .net appication is closed - the ldb disappears). Basically, I want to be
able to compact and repair the database everytime the application is closed.
I'm currently doing this using DAO (which doesn't have access to the db if
it's locked). So, is there a good solution that compacts the db via .net OR
can i somehow shut down the Admin user's use of the access db.

Thanks for any help


Jul 21 '05 #2
SBK
Thanks Mary

"Mary Chipman" wrote:
My recommendation would be that if everything works fine without the
database password, then don't use it. The database password feature in
Access is absolutely useless. Anyone who is interested and capable of
doing a google search can bypass it easily. The totally illusory
"protection " it gives isn't worth the hassle. Even user-level Access
security, which is more complex to implement than the databse
password, can be circumvented via google. Basically the bottom line is
if you have sensitive data and/or serious security requirements, don't
use Access.

--Mary

On Tue, 9 Nov 2004 11:24:02 -0800, SBK <SB*@discussion s.microsoft.com >
wrote:
I'm having a problem:

I connect to an MS access db using jet oledb (it has a password). If the db
doesn't have a password, everything works fine. If i do, access gets locked
down (.ldb) with the access db 'Admin' user. Closing the Windows Form that
uses the oledbconnection has no effect on the ldb (even though i close the
connection etc). I can't delete the ldb manually or programatically (after
the .net appication is closed - the ldb disappears). Basically, I want to be
able to compact and repair the database everytime the application is closed.
I'm currently doing this using DAO (which doesn't have access to the db if
it's locked). So, is there a good solution that compacts the db via .net OR
can i somehow shut down the Admin user's use of the access db.

Thanks for any help


Jul 21 '05 #3

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

Similar topics

11
3766
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
63
5940
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy in Visual Studio to create reports and labels as it's in Access?` The advantage of VS.net is that not every user needs Access, right? And that would eliminate the Access version problem as well I guess.
49
14361
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The application is relatively big: around 200 tables, 200 forms and sub-forms, 150 queries and 150 repports, 5GB of data (SQL Server 2000), 40 users. I'm wondering what are the disadvantages of using Access as front-end? Other that it's not...
20
3349
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to speed. I like books with practical exercises, and also with test questions (like cert books) *2*
64
5261
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. Any comments? Thanks
4
3538
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
17
2497
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a thousand items and the accounting side will be used for hopefully many years so the entries are likely to be vast. The delema is what is best to use ase the DB engine, Access I have as part of Office 2002 or should I really be looking at SQL...
15
4644
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
34
2617
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button remains desperatly grayed. It also seems impossible to open the library in another Access instance
16
6538
by: JoeW | last post by:
I'm utilizing a database that I created within MS Access within a program I've created in VB.NET. I am using the VB front end to navigate the information, but want to be able to print a report, that I've also created within MS Access. I've attempted using the Access.Application instance, but I get errors when it tries to load the database. Just wondering if anyone has any experience with this, and what I should do. Thanks for any...
0
9666
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
9512
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
10413
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
9986
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...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5422
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...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.