FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WB19: Correct Connection settings to local DB
WB19: Correct Connection settings to local DB
Débuté par Michael Q, 02 sep. 2014 15:29 - 4 réponses
Connectez-vous…
Michael Q
#1
Posté le 02 septembre 2014 - 15:29
I can't seem to find clear instructions for how to set the DB connection to a local HFSQL (Not Client/Server) DB in code. I am trying to do this on my development machine and although the connection seems to be automatic I need to learn how to control this code in the case of different servers etc.
If I have not set a usersname or password, what are the minimum settings to make a connection?
Many thanks,
Michael
Signaler
0
0
Peter H.
#2
Posté le 02 septembre 2014 - 15:43
Hi Michael:
hCreationIfNotFound()
hDescribeConnection()
hOpenConnection()
hChangeConnection()
Are your friends in that order...
Cheers,
Peter H.
Signaler
0
0
Michael Q
#3
Posté le 02 septembre 2014 - 17:44
Thanks Peter.
My problem is with the connection parameters....what to use?
This causes WB19 to crash:
MyConnection is Connection
MyConnection..User = ""
MyConnection..Password = ""
MyConnection..Source = "E:\WebDev 19\Inigo-2\Exe\"
//MyConnection..Server = ""
//MyConnection..Database = ""
//MyConnection..Provider = hAccessHF7 //??
//MyConnection..Access = hOReadWrite
//MyConnection..ExtendedInfo = ""
//MyConnection..CursorOptions = hClientCursor
HOpenConnection(MyConnection)
Michael
Signaler
0
0
Paulo Oliveira
#4
Posté le 02 septembre 2014 - 19:02
you can find one example using HDescribeConnection in <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?1000003044205">http://doc.windev.com/en-US/…</a>
Signaler
0
0
Tor-Bjarne
#5
Posté le 02 septembre 2014 - 22:04
Hi Her is what I use with Windev 19
:
DBConn..Provider = hAccessHF7 DBConn..Server = gsLocalDBDir //Containing my DB directory
Cheers
Tor-Bjarne
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte