Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hitting a temp table in a pass-thru query
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Hitting a temp table in a pass-thru query
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355354
Message ID:
01355354
Vues:
67
I want to build a query at runtime in Fox and pass it back to Sql Server via a cursor adapter or a SqlExec(). In that query I build at runtime I want to join to a temporary table(s) that I created via a stored procedure only a few commands before I execute the query call ( .Fill or SqlExec() ) while on the same connection handle. I get an error that the temp table is not an object.

Can something like this not be done? We are having to keep control of our query construction in the middle tier since we allow user input at runtime as to filters and column selection but based on what columns they choose we may have to build some "calculated cursors" prior to the main query that we join back into for supplying values for columns as opposed to calling functions in the select clause ( we found this a big performance boost in Fox ).

On a side note is calling functions in the select clause in Sql just as costly as in Fox?

Thanks,

MW
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform