Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC connection... now what.
Message
 
À
01/09/2000 23:58:04
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00412011
Message ID:
00415184
Vues:
27
Views don't necessarily have to be used with forms. Just issue:

OPEN DATABASE MYDATABASE SHARED
USE MYVIEW SHARED
INSERT INTO MYVIEW (field1, field2) VALUES ('TEST', 'TEST')
TABLEUPDATE()
USE


Also...
Have you looked at SQLCONNECT() and SQLEXEC()?

SQLCONNECT will make the connection and return the connection handle, then you can use SQLEXEC to make SQL calls to the extent that the ODBC driver for access supports them:

lnHandle=SQLCONNECT(ODBC connection, username, password)
SQLEXEC(lnHandle, 'SELECT * FROM PUBS', 'csrTemp')
or
SQLEXEC(lnHandle, "UPDATE PUBS SET AUTHOR='Hans' WHERE ...", 'csrTemp')

You can also use ADO recordsets as a go between, but in this case it sounds like more work than it's worth.

Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform