Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC Connections
Message
De
01/03/2005 05:01:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00991379
Message ID:
00991477
Vues:
15
>I am very confused about how to create connections in code to ODBC connections.
>
>I can manually create a remote view either in code or thru the wizards and retrieve the information that I am wishing.
>
>The problem comes in when using Primavera Project Planner (P3).
>
>They are using the Pervasive Software ODBC Interface. When I create a remote view using the wizard I can select from any of the tables are on the list.
>
>How do I connect to them via Code? I will know the name of the table but fisrt 4 characters of the table name can change. For instance the first 4 characters of XXXXACT will change but the table structure is always the same.
>
>I am assuming that I should be using the Create Connection or my preferred method of Create SQL View Connection, but how in code do I select the table inside of the ODBC connection to connect to?

Use SQLStringConnect() to connect to source, then SQLTables() to get the list of tablenames available.
FAQ #8039 might help.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform