Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie client/server question, SQLEXEC() syntax for AS40
Message
De
12/08/1998 14:29:44
 
 
À
11/08/1998 22:04:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00125846
Message ID:
00126133
Vues:
22
>I've just created a connection to an AS400 but I'm having trouble issuing a simple SQLEXEC() to test it out. I'm getting back valid handles when I issue SQLCONNECT(). It appears that it doesn't like the syntax I'm passing in my SQL statement:
>
>lnResult=sqlexec(lni, "Select * FROM HMPTKMSZ")
>
>where lni is a valid connection handle. HMPTKMSZ is a valid table. I was able to verify that with SQLTABLES(). I tried "SELECT * from BMC2!HMPTKMSZ" where bmc2 is the table qualifier that SQLTABLES() returns, that didn't work either. Does anyone know how to reference a table on the AS400?

Do you have a database name that this table belongs to? I've never tried this against an AS/400, only worked with SQL Server and Informix, and they require the database name as in "SELECT * FROM MyDB.MyTable". HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform