Re: What to use for ADO parameter type and size
- From: "RB Smissaert" <bartsmissaert@xxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 16:31:13 +0100
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)) ?
RBS
"Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx> wrote in message news:O3hRrDG0HHA.3600@xxxxxxxxxxxxxxxxxxxxxxx
RB Smissaert wrote:Thanks for the quick reply.
Yes, leaving off the Set was a typo, but it worked fine tough.
I think I do need the recordset as I need to move the data to a SQLite
table.
Now that I read your code again, i see that I skimmed over that line too quickly. Of course you are opening a recordset. My suggested alternative should be changed to:
Set rs = .Execute( ,Array(arr2(i, 0)))
Are you suggesting I should do this differently?
No, I was merely suggesting an alternative, since you didn't seem to be "happy" with what you had written.
I had read somewhere that specifically defining the parameter object
was faster, so
that is what I did.
Maybe a nanosecond faster. Plus it's more typesafe. But you're using a variant array to populate it so it seems you have no need for type safety.
--
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: Stephen Howe
- Re: What to use for ADO parameter type and size
- From: Bob Barrows [MVP]
- 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]
- 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
|
|