Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC Error : ... cannot be set.
Message
De
21/04/1997 09:35:44
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
20/04/1997 19:22:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00029030
Message ID:
00029058
Vues:
29
>CLOSE DATABASES ALL
>CLOSE DATABASES
>CLEAR ALL
>CLEAR
>*
>xyz=SQLCONNECT("trnnbruq")
>
>*!! I am receiving the following two errors after the above command
>*!! although the program code still works (now ... sometimes it doesn't).
>*!! Error #1: Warning: The query timeout cannot be set.
>*!! Error #2: Warning: The connection sync/async mode cannot be set.
>
>
>WAIT WINDOW "Open = "+STR(xyz)
>*
>abc=SQLEXEC(xyz,"SELECT * FROM trnnbruq","tmptrn")
>WAIT WINDOW "Select = "+STR(abc)
>*
>*
>BYBY=SQLDISCONNECT(xyz)
>WAIT WINDOW "Closed = "+STR(byby)
>*
>RETURN
>
>
>
>PROGRAM : VFP50
>ODBC : VFP50
>NT4 Workstation
>(I am using ODBC because pretty soon we will be using SQL Server.)
>
>Can anybody tell me why I am receiving the errors?
>Thanks,
>Gene Berger
I am still very green on sql server stuff, but since you say that it does work sometimes, 1)Have you checked to see that all your datasessions are in fact closed?
2)Try closing out "tmptrn"..(i.e. USE IN tmptrn) before SQLDISCONNECT..
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform