Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sqlconnect seems determined to ask for more info
Message
De
21/01/1999 09:58:32
 
 
À
21/01/1999 08:54:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00178140
Message ID:
00178446
Vues:
30
Hi Denise ----

>>Still wrestling with ODBC, huh?
>Of course, but I'm going to lick this darn thing :)
>

OK, if you have your DSN defined there is an easy way out of this: Create a database and create a Connection based on the DSN. BTW, make sure that the database is specified (the .MDB) in the new DSN.

Here is the relevent code that GENDBC created to get, in this case, the Authors from the Booksale MDB that ships as a VB6 example.

CREATE DATABASE 'ACCTEST.DBC'
CREATE CONNECTION ACCCONNECT ;
DATASOURCE "mydata" ;
USERID "" ;
PASSWORD ""
CREATE SQL VIEW "VUEAUTHORS" ;
REMOTE CONNECT "ACCCONNECT" ;
AS SELECT Authors.Au_ID,Authors.Author,Authors."Year Born" FROM Authors
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform