Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameters queries

Status
Not open for further replies.

EvilCabal

Programmer
Jul 11, 2002
206
CA
Hi, I have always used static user defined functions to create queries with varying parameters, but I just learned that this is slow as hell. Is there another way to do it?
 
You could try using code to create an SQL String, which you then use to replace the SQL String for the query you want to run.
The benifits will be that all the parameters will become 'hardcoded' within the query, so it should run much faster. Next time you want to run that query again, you will change the SQL property again.
Its all done with querydefs. Whilst this might not be exactly what you want to do, but it might give you some ideas!! Check here: faq701-2328

Good Luck, and HTH

Mincefish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top