Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hitting a temp table in a pass-thru query
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01355354
Message ID:
01355360
Views:
23
How do you build temp table? If it's create in a stored procedure, it'll be destroyed when SP ends.

>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 ).
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform