R
Roy Goldhammer
Hello there
On my program there are combo boxes that the rowsource is bound to access
query.
To improve performance I've created store procedures in sql server, crated
pass throw quries that connect to the store procedures.
This works fine, exept that the store prodecures, who are bases on
parameters which is in the form. And in order to use the paramater i have
(as far as i know) to use code at the beginning of the form that do:
1. get the queries from the Currentdb.QueryDefs collection
2. change the sql with the new sql parameters
The code is look like this:
dim qry as queryDef
set qry = currentdb.QueryDefs("qry")
qry.sql = "EXEC sto " & me.parameter
This procedure is very heavy. (it takes at least 3 seconds for every time i
run it)
And to thing that i need it to more then one query it will be catastrophy
Is there better way to use pass throw query in this metter?
--
øåòé âåìãäîø
òúéã äðãñú úåëðä
èì' 03-5611606
ôìà' 050-7709399
àéîééì: (e-mail address removed)
On my program there are combo boxes that the rowsource is bound to access
query.
To improve performance I've created store procedures in sql server, crated
pass throw quries that connect to the store procedures.
This works fine, exept that the store prodecures, who are bases on
parameters which is in the form. And in order to use the paramater i have
(as far as i know) to use code at the beginning of the form that do:
1. get the queries from the Currentdb.QueryDefs collection
2. change the sql with the new sql parameters
The code is look like this:
dim qry as queryDef
set qry = currentdb.QueryDefs("qry")
qry.sql = "EXEC sto " & me.parameter
This procedure is very heavy. (it takes at least 3 seconds for every time i
run it)
And to thing that i need it to more then one query it will be catastrophy
Is there better way to use pass throw query in this metter?
--
øåòé âåìãäîø
òúéã äðãñú úåëðä
èì' 03-5611606
ôìà' 050-7709399
àéîééì: (e-mail address removed)