> I have a 3.5G database containing a table that is 1.5G that will grow quite
> large. I wish to run some queries off of it in VFP 5 and just return the
> results.
> When I try to use a remote view that I created, I get an ODBC error that
> says my temdb is full (I increased it to 7 MG). If I am not filtering in
> my remote view, I think I would need to have a tempdb of the equivalent
> size of the largest table in my database. Is this a correct assumption?
Did you mean Gig (as in the 1.5G table) above, or was that a
mis-type? If you meant Gig, it is quite possible that you are filling
up TempDB. All queries and temporary tables usually run
through it. The SQL server default of 2MB is much too small for a
TempDB in most applications. For example, mine are set to 52MB, but,
then again, I'm not dealing with any gig sized tables, so.....
It may be storing some query results there untill ODBC can kick 'em
back to your app (in this case, VFP). Sincwe the server can spit rows
into TempDB faster than ODBC can send them to your front end.....
Are you trying to query ALL of the records in that large table? If
so, perhaps you should consider either a) refining your query to
something smaller or b) making some meta-data tables that hold query
results or aggregates (I assume you don't want just a printout of
those millions of records (s)).
HTH,
Scot.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement