Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC
Message
 
À
14/09/2001 13:44:30
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: ODBC
Divers
Thread ID:
00556482
Message ID:
00556709
Vues:
27
Sorry for jumping in, but I if you not set this sqlsetprop correctly, that annoying popup to confim your dsn;s just keeps coming up..
Here is a snip of code, wich might help.
If SQLGETPROP(0,'DispLogin') <> 3
   = SQLSETPROP(0,'DispLogin',3)  && No login -- error on fail
Endif
If SQLGETPROP(0,'DispWarnings')
	= SQLSETPROP(0,'DispWarnings',.F.)  && No errors
Endif
Bob Lee

>Cetin,
>
>I got a connection now but I am getting an error SQLEXEC() statement. Here is all my code:
>lcConnection = 'DRIVER=Client Access ODBC Driver (32-bit);'+;
>'DBQ=webprddtx;SYSTEM=GVAS400;TRANSLATE=1;SIGNON=0;SSL=2;CONNTYPE=0'
>
>gnHandle1 = SQLSTRINGCONNECT(lcConnection)
>
>If gnHandle1 <= 0 Then
> Wait Window "Connection not Made"
> Cancel
>Else
>= SQLSETPROP(gnHandle1, 'asynchronous', .F.)
>= SQLPREPARE(gnHandle1, "Select * From drawmstrp", 'mySeeThisfit')
>= SQLEXEC(gnHandle1)
>EndIf
>= SQLDISCONNECT(gnHandle1)
In the beginning, there was a command prompt, and all was well.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform