If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Microsoft ADO Data Control 6.0 (SP4)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-04-02, 16:22
jpclerc jpclerc is offline
Registered User
 
Join Date: Sep 2002
Location: French Polynesia
Posts: 2
Question Microsoft ADO Data Control 6.0 (SP4)

Hello,
Sorry for my poor english, i'm a frenchy

The ADO DC control has the property "ConnectString". In the tool VB6, it has a value for an ACCESS2000 database in a directory of my computer. This directory is only for developpment.
I want to change the connectstring at the begenning of the program.
I have try without success ....
Thanks for your help jpclerc@hotmail.com
Reply With Quote
  #2 (permalink)  
Old 09-04-02, 22:46
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Where will you access database reside ?
Reply With Quote
  #3 (permalink)  
Old 09-05-02, 22:53
jpclerc jpclerc is offline
Registered User
 
Join Date: Sep 2002
Location: French Polynesia
Posts: 2
In c:\dev during my developpement.
and in f:\MyAppli for the end uder
Reply With Quote
  #4 (permalink)  
Old 09-05-02, 23:07
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Change your connectionstring property - you said you had a problem - what happened and please post the existing connectionstring that works and the connectionstring that failed.
Reply With Quote
  #5 (permalink)  
Old 09-13-02, 03:16
OVDH OVDH is offline
Registered User
 
Join Date: Sep 2002
Posts: 2
Question Re: Microsoft ADO Data Control 6.0 (SP4)

Quote:
Originally posted by jpclerc
Hello,
Sorry for my poor english, i'm a frenchy

The ADO DC control has the property "ConnectString". In the tool VB6, it has a value for an ACCESS2000 database in a directory of my computer. This directory is only for developpment.
I want to change the connectstring at the begenning of the program.
I have try without success ....
Thanks for your help jpclerc@hotmail.com
Salut,

essaie :

ADODB.Connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" + DB-Alias

Le DB-Alias ce touve dans le tnsnames.ora. Ce doit être modifié.

et après:

ADODB.Connection.open UserID:=strUSER, Password:=strPASS

Bon chance.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On