Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLExec not finding new tables in dbc
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01024078
Message ID:
01024080
Vues:
16
Kevin,

What ODBC error you get ( AERROR() ) ?

>I am using the following code to connect to my DBC. Pretty straightforward....
>
>
>
>lcDB = "C:\TTS\DBFS\tts.dbc"
>lcConnectString = "Driver={Microsoft Visual FoxPro Driver};" + ;
>		  "SourceType=DBC;SourceDB=" + lcDB + ";" + ;
>		  "Exclusive=No;NULL=NO;Collate=Machine;" + ;
>		  "BACKGROUNDFETCH=NO;DELETED=NO"
>
>lnStringConnection = SQLStringConnect(lcConnectString, .T.)
>?lnStringConnection  && returns 1
>
>lnConnection = SQLCONNECT(lnStringConnection)
>?lnConnection && returns 2
>
>
>
>I have 3 tables that were added to the dbc a couple of months ago. If I try a SQLExec to one of these new tables, it will not connect. It will connect to any of the tables that were there previously:
>
>
>* old table
>lsSql = "SELECT * FROM employee"
>lnSuccess = SQLExec(lnConnection, lsSql, "tProcess")
>?lnSuccess  && returns 1
>
>* one of the new tables
>lsSql = "SELECT * FROM reserve"
>lnSuccess = SQLExec(lnConnection, lsSql, "tProcess")
>?lnSuccess  && returns -1
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform