Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC Connection
Message
 
 
À
13/10/1999 11:20:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00275853
Message ID:
00275870
Vues:
24
>I have 5 views in my database that come from the same data source. What do I need to do if I only want to enter the password once for that data source when I do an SQL-select on these views.
>
>Sam

Use a shared connection. Create a dummy remote view [non-updatable] that selects 1 row from any of the tables. At the beginning of the app, open this view and leave it open for the entire session. If you decide to use SPT in the future, you can use this same connection. Just use CursorGetProp('ConnectHandle', 'View_Name') to get the connection handle to use in SQLExec().

In Oracle there is a dummy table called DUAL that has 1 record. This is what I have my dummy view based on.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform