VB.net Array vs SQL Temporary Tables

  • Thread starter Thread starter Adam Maltby
  • Start date Start date
A

Adam Maltby

Hi,

I am writing a project which will extarct some random entries from an sql table and hold them for later use.

My question is:
Which would provide the best performance; Select the data with sql calls and hold the data a vb array or Select the data with sql calls and hold it in a temporary sql table?

Cheers
Adam
 
Hi Adam
The SQl temporary tables are deleted when there no longer
used. So i would say holding the data in a array is
better.

Kind Regards
Jorge

-----Original Message-----
Hi,

I am writing a project which will extarct some random
entries from an sql table and hold them for later use.
My question is:
Which would provide the best performance; Select the
data with sql calls and hold the data a vb array or
Select the data with sql calls and hold it in a temporary
sql table?
 
Hi Jorge,

I know the temp table will be deleted when the spid ends - but that doesn't matter as the spid won't end until my app says so.... so this was purely from a speed performance point of view....

Cheers
Adam
 
Hi
Then why not holding it insider a dataset ? If its just
for storing ?

Jorge
-----Original Message-----
Hi Jorge,

I know the temp table will be deleted when the spid
ends - but that doesn't matter as the spid won't end
until my app says so.... so this was purely from a speed
performance point of view....
 
I am writing a project which will extarct some random entries from an sql
table and hold them >for later use.
My question is:
Which would provide the best performance; Select the data with sql calls
and hold the data a >vb array or Select the data with sql calls and hold it
in a temporary sql table?


That is where the dataset is designed for.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top