Re: What to use for ADO parameter type and size
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 11:44:03 -0400
RB Smissaert wrote:
Set rs = .Execute( ,Array(arr2(i, 0)))
This does work, but is slightly slower than doing:
Set rs = .Execute( ,arr2(i, 0))
What is the reason for doing Array(arr2(i, 0)) ?
A single-dimensioned variant array containing the parameter value(s) is
required here. The 2-dimensional array you have here should be causing a
type mismatch ... unless the element referenced by arr2(i,0) contains a
variant array. In my experience, a type mismatch is caused by this:
Set rs = .Execute( ,5)
To make it work, I've had to do this:
Set rs = .Execute( ,Array(5))
I cannot believe you are seeing a measurable performance difference here. It
really makes me question exactly what you are measuring and how you are
measuring it. In absolute numbers, exactly what timings are you seeing?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Follow-Ups:
- Re: What to use for ADO parameter type and size
- From: RB Smissaert
- Re: What to use for ADO parameter type and size
- References:
- What to use for ADO parameter type and size
- From: RB Smissaert
- Re: What to use for ADO parameter type and size
- From: Bob Barrows [MVP]
- Re: What to use for ADO parameter type and size
- From: RB Smissaert
- Re: What to use for ADO parameter type and size
- From: Bob Barrows [MVP]
- Re: What to use for ADO parameter type and size
- From: RB Smissaert
- What to use for ADO parameter type and size
- Prev by Date: Re: What to use for ADO parameter type and size
- Next by Date: Re: What to use for ADO parameter type and size
- Previous by thread: Re: What to use for ADO parameter type and size
- Next by thread: Re: What to use for ADO parameter type and size
- Index(es):
Relevant Pages
|
|