DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Data Base Password (ADO)

 
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
Naser
Member


Joined: 06 Mar 2005
Posts: 11
Location: Iran - Esfahan

PostPosted: 29/03/05 21:19    Post subject: Data Base Password (ADO) Reply with quote

I want set database password in Access and open database in delphi without password.
Back to top
View user's profile Send e-mail Yahoo Messenger
Stefan
Junior Member


Joined: 27 Sep 2004
Posts: 80
Location: Netherlands

PostPosted: 29/03/05 22:16    Post subject: Reply with quote

I'm not entirely sure if I know what you mean but you can try this:

Create a file called "access.udl"

Edit that file (by double clicking on it)
- Select the Microsoft Jet 4.0 driver
- Go the next tabsheet and select the MDB file you wish to connect to
- Fill in the username "admin" and the password associated with that account
- Test the connection by clicking "Test Connection"
- Save the file

Back in your in Delphi project:

- Set the LoginPrompt property to false (assuming you are using a TAdoConnection).
- Set the ConnectionString property to "FILE NAME=Access.udl"
- Then try connecting by setting the Connected property to true.

Cheers,
Stefan
Back to top
View user's profile Send e-mail
Naser
Member


Joined: 06 Mar 2005
Posts: 11
Location: Iran - Esfahan

PostPosted: 10/04/05 06:41    Post subject: Reply with quote

tanx

What Is Udl
Back to top
View user's profile Send e-mail Yahoo Messenger
Stefan
Junior Member


Joined: 27 Sep 2004
Posts: 80
Location: Netherlands

PostPosted: 11/04/05 09:58    Post subject: Reply with quote

Hi,

UDL stands for Universal DataLink.
It's file-extenstion (.UDL) is linked to a little editor that allows you to easily configure connections to datasources.

Cheers,
Stefan
Back to top
View user's profile Send e-mail
Naser
Member


Joined: 06 Mar 2005
Posts: 11
Location: Iran - Esfahan

PostPosted: 12/04/05 06:27    Post subject: Reply with quote

when enter password And user name : admin , an error happen : invalid password
sory , i english not very good .
bye
Back to top
View user's profile Send e-mail Yahoo Messenger
Stefan
Junior Member


Joined: 27 Sep 2004
Posts: 80
Location: Netherlands

PostPosted: 12/04/05 07:17    Post subject: Reply with quote

Hi,

Are you sure you have selected the "Microsoft Jet 4.0 OLE DB Provider"?
Are you sure about the password? (is there a password? default the password is empty in MS Access).

Stefan
Back to top
View user's profile Send e-mail
Naser
Member


Joined: 06 Mar 2005
Posts: 11
Location: Iran - Esfahan

PostPosted: 16/04/05 14:46    Post subject: Reply with quote

Yes
can you build a delphi program with database password and send source for me ?

Tanx
Back to top
View user's profile Send e-mail Yahoo Messenger
Naser
Member


Joined: 06 Mar 2005
Posts: 11
Location: Iran - Esfahan

PostPosted: 16/04/05 14:48    Post subject: Reply with quote

NaserMokkary@Yahoo.Com
Back to top
View user's profile Send e-mail Yahoo Messenger
Stefan
Junior Member


Joined: 27 Sep 2004
Posts: 80
Location: Netherlands

PostPosted: 19/04/05 07:15    Post subject: Reply with quote

I've sent a demo to your yahoo address... Let me hear how it went!

Stefan
Back to top
View user's profile Send e-mail
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group