Solved

Delphi and Ms-Access user's

Posted on 2003-11-19
7
219 Views
Last Modified: 2010-04-05
Hi Experts
How I  can define MS-Access user and password From Delphi
thanks
Best regards
0
Comment
Question by:fhbexpir
  • 3
  • 2
7 Comments
 
LVL 5

Accepted Solution

by:
Darth_helge earned 100 total points
ID: 9785444
If you want to use msAccess database in delphi you can use a TADOConnection. then fill in its connectionstring.

like this:
procedure TForm1.Button1Click(Sender: TObject);
var
ADOConnection1: TADOConnection;
Accesspwd: string;
begin
ADOConnection1 := TADOConnection.Create(nil);

ADOConnection1.ConnectionString  := 'Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source='
      +  'IFDB\Info Form.mdb;' + 'Persist Security Info=False;Jet OLEDB:'
      +  '\\Itts\Felles\MARTIN\Info Form.mdb;' + 'Persist Security Info=False;Jet OLEDB:'
      + 'Database Password=' + AccessPwd + ';Jet OLEDB:New Database Password=' + AccesPwd;

ADOConnection.Active := true;

end;

now you're connected to the msaccess database with a password.
0
 
LVL 5

Expert Comment

by:Darth_helge
ID: 9785585
ADOConnection1.ConnectionString  := 'Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source='
      +  thePathToTheDataBase + 'Persist Security Info=False;Jet OLEDB:'
      + 'Database Password=' + AccessPwd + ';Jet OLEDB:New Database Password=' + AccesPwd;

sorry, was a little fast there..

0
 

Author Comment

by:fhbexpir
ID: 9795017
Thanks for you

But I want define user and password for Ms-Access For many users runtime
(i use of Adoconnection and .....)
Like as SqlServer(Sp_Addlogin and sp_password and ....)

Thaanks
0
 

Author Comment

by:fhbexpir
ID: 9795021
Thanks for you

But I want define user and password for Ms-Access For many users runtime
(i use of Adoconnection and .....)
Like as SqlServer(Sp_Addlogin and sp_password and ....)

Thanks
0
 

Author Comment

by:fhbexpir
ID: 9804954
I want to use msAccess database in delphi.How I can define  users and password from delphi(dll,Activex,ocx,...)
thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now