Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query doesnot take the variable
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00563313
Message ID:
00563334
Vues:
20
If you are looking to get a list of tables from a remote source to create views for on the fly, use the SPT function SQLTables() to return the list to an array.

As for the SQL to create the view, you have to use &gcTable instead of (gcTable)

>I can run the following query to create the remote view
>Create SQL VIEW rv_SCRFOR;
>connection SCRFOR;
>as SELECT * FROM LH901701.DBF
>but if i use the variable like
>
>gcTable = GETFILE('DBF', 'select a dbf:', 'Ok', 0,;
> 'Select Or Cancel')
> gcTable = UPPER(ALLTRIM(Right(gcTable,12)))
>Create SQL VIEW rv_SCRFOR;
>connection SCRFOR;
>as SELECT * FROM (gcTable)
>
>where gcTable has value "LH901701.DBF", it gives me error
>
>Also Is there any way that I can select the files and get those files in some variable one by one, without allowing the user to select the file first
>
>
>Thanks Bharat
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform