FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
[WD8] Dynamic ODBC
[WD8] Dynamic ODBC
Débuté par Raimund Schuldhaus, 30 mar. 2004 20:07 - 3 réponses
Connectez-vous…
Raimund Schuldhaus
#1
Posté le 30 mars 2004 - 20:07
Hi all,
is there a way to use a dynamic ODBC connection or to change the ODBC parameters at runtime?
I have the need to read a TOPSPEED file, but the name and directory has to be defineable at runtime.
I played a little bit with HDescribeConnection and HDescribeFile but without luck.
Raimund
Signaler
0
0
Joop van der Linden
#2
Posté le 30 mars 2004 - 10:39
Like Pter said, you can create a DSN-file.
The DSN-file is a file in Ascii-format.
We create our own DSN-files.
Search your computer with "*.dsn".
With an ACII-editor you can open the DSN-files to examine the format.
For more info you van search
www.microsoft.com\msdn
\
greetings,
Joop van der Linden
Member of the Dutch speaking WinDev Developer Group (WDG)
Hi you,
is there a way to use a dynamic ODBC connection or to change the ODBC
parameters at runtime?
I have the need to read a TOPSPEED file, but the name and directory has to be
defineable at runtime.
I played a little bit with HDescribeConnection and HDescribeFile but without
luck.
I think you have to go to a more lower level, change or create a DSN ?
Do you know where the parameters are stored? Registry?
Peter
New-Way Automation b.v.
Signaler
0
0
Raimund Schuldhaus
#3
Posté le 30 mars 2004 - 14:26
I think you have to go to a more lower level, change or create a DSN ?
Do you know where the parameters are stored? Registry?
Peter
Thanks Peter and Joop,
I found a solultion without dealing/handling with DSN files and/or Registry settings. My idea comes from the ADO connect string. And what a supprise, it works!
myParam is string = "DRIVER=Topspeed Developer version; NullEmptyStr=N; Oem=N; Extension=LTF; DBQ=D:\CWAB\ICP_cz.ltf\!"
HDescribeConnection("New", myParam)
HChangeConnection(UNNAMED, "New")
Best regards
Raimujnd
http://www.invitec.com
Signaler
0
0
Peter van Vuuren
#4
Posté le 31 mars 2004 - 01:07
Hi you,
is there a way to use a dynamic ODBC connection or to change the ODBC
parameters at runtime?
I have the need to read a TOPSPEED file, but the name and directory has to be
defineable at runtime.
I played a little bit with HDescribeConnection and HDescribeFile but without
luck.
I think you have to go to a more lower level, change or create a DSN ?
Do you know where the parameters are stored? Registry?
Peter
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