Solved

Connecting to Access

Posted on 1998-09-02
2
140 Views
Last Modified: 2010-04-04
Hi. I want to connect to an Access database. I have tried doing it, it works, but everytime I start the program, it asks for a login & Password. I can click enter (The database is not secure) but it's annoying. The Best way would be if I COULD put a password, but let my application enter it automatically. Another solution, is to use the users protection scheme. Because I WILL use users in my application, I CAN use the login to the Database as my user's account (It can ever save me some time, and password encoding...) But How do I know, in runtime, in my program, which user is using the database?

I hope I am clear,
                     Ron.
0
Comment
Question by:ShadowHawk071998
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
ellessar earned 100 total points
ID: 1338476
You can use the GetUserName function to find out what
the name of the current logged on user is, alternatively
you can prompt your user for a password and username
and assume that this will hold true for the entire
session. In your TDatabase component just add the following parameters
  user name = (add user name)
  password = (add password)
then set the loginprompt property to false (to prevent
the database component for prompting for a connection)programatically once the user has logged on. You may
also want to use a generic read only logon and password
to access a users permissions tables prior to actually performing the logon.
0
 

Author Comment

by:ShadowHawk071998
ID: 1338477
Thanks. But I have to say that I had one trouble: YOu have to write it without spaces :
user name=
password=yourpassword

or it doesn't work (And it took me the better part of an hour to get it right...)

bye!

0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question