Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass ID and Password to connection??
Message
De
21/04/1998 19:18:31
 
 
À
21/04/1998 19:09:51
Eric Wolfe
Health Management Technologies
Lafayette, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00093848
Message ID:
00093849
Vues:
27
>I am converting an existing Foxpro 5.0 application to client/server, which will use Oracle as a backend database.
>User ID and password are specified in the connection which is part of the database container in the front end. I left it empty so any user could log in to the backend with their own ID and password, which are entered upon starting our application. How could I pass this information as parameters to the connection?

Assumptions:

database=MyData
connection=conOracle
vueOracleTable = remote view from Oracle database
cUser = memory variable containing User ID
cPW = memory variable containing Password



OPEN DATABASE MyData
=DBSETPROP(conOracle,"CONNECTION","UserID",cUser)
=DBSETPROP(conOracle,"CONNECTION","PassWord",cPW)
USE vueOracleTable
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform