Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Delphi and Ms-Access user's

Posted on 2003-11-19
7
Medium Priority
?
228 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
[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
  • 3
  • 2
7 Comments
 
LVL 5

Accepted Solution

by:
Darth_helge earned 400 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

670 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