Click here to Skip to main content
15,890,717 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: data set vs data reader Pin
Colin Angus Mackay30-Sep-07 3:04
Colin Angus Mackay30-Sep-07 3:04 
GeneralRe: data set vs data reader Pin
Vimalsoft(Pty) Ltd30-Sep-07 20:15
professionalVimalsoft(Pty) Ltd30-Sep-07 20:15 
Questionupdation of o/p of sql query execution Pin
nilam1130-Sep-07 2:32
nilam1130-Sep-07 2:32 
AnswerRe: updation of o/p of sql query execution Pin
Colin Angus Mackay30-Sep-07 2:55
Colin Angus Mackay30-Sep-07 2:55 
GeneralRe: updation of o/p of sql query execution Pin
nilam1130-Sep-07 2:59
nilam1130-Sep-07 2:59 
GeneralRe: updation of o/p of sql query execution Pin
Colin Angus Mackay30-Sep-07 3:04
Colin Angus Mackay30-Sep-07 3:04 
Questioncrystal report problem Pin
magedhv30-Sep-07 2:22
magedhv30-Sep-07 2:22 
AnswerRe: crystal report problem Pin
Indrora30-Sep-07 7:42
Indrora30-Sep-07 7:42 
the reason its taking so long to work is that you are doing 115 INDIVIDUAL queries... thats 115 new connections to a server and 115 questions of the server.... thats a LOT of data....

Consider using a BackroundWorker of some kind, OR using a berrer query structure... thats why its taking so long.

to make it simpler, think of a query as a conversation.
You make a query to a server, you start a whole NEW converstion with it.
you ask one question ( ie select all from * where foo equals bar)
you end the conversation.

repeat 115 times.

better way to do it:
connect to server.
ask it "select from * where ( foo = bar) OR (baz = bar) OR ...."
parse that data.
end connection.

no repeat.

you only have to understand the data that you are being fed. but the only thing you have to do once is ask the query... not 115 times because you've asked it a really well refined question that can easily be answered.

Hope that helps.

----
Morgan Gangwere
Lead programmer, Unknown Software

"Pinky, are you thinking what im thinking?"
"I Dunno brain, how many licks DOES it take to get to the tootsie roll center of a tootsie pop?"
"You want me to calculate that? or should we take over the world?"
"ooh! OooooOOOooH! lets find out!"

GeneralRe: crystal report problem Pin
magedhv30-Sep-07 23:15
magedhv30-Sep-07 23:15 
QuestionVB Login Form connect to a DB Pin
Brad^30-Sep-07 1:49
Brad^30-Sep-07 1:49 
AnswerRe: VB Login Form connect to a DB Pin
Paul Conrad30-Sep-07 13:38
professionalPaul Conrad30-Sep-07 13:38 
QuestionLicence Key generation Pin
moorthyuk29-Sep-07 23:00
moorthyuk29-Sep-07 23:00 
AnswerRe: Licence Key generation Pin
Christian Graus29-Sep-07 23:11
protectorChristian Graus29-Sep-07 23:11 
QuestionLicense Key Generation Pin
moorthyuk29-Sep-07 22:56
moorthyuk29-Sep-07 22:56 
AnswerRe: License Key Generation Pin
Paul Conrad30-Sep-07 13:39
professionalPaul Conrad30-Sep-07 13:39 
QuestionRandom Access File Pin
AAGTHosting29-Sep-07 18:45
AAGTHosting29-Sep-07 18:45 
AnswerRe: Random Access File Pin
ESTAN30-Sep-07 0:55
ESTAN30-Sep-07 0:55 
QuestionVB code Pin
fgarcia9029-Sep-07 12:30
fgarcia9029-Sep-07 12:30 
AnswerRe: VB code Pin
Dave Kreskowiak29-Sep-07 12:47
mveDave Kreskowiak29-Sep-07 12:47 
GeneralRe: VB code Pin
Paul Conrad29-Sep-07 13:04
professionalPaul Conrad29-Sep-07 13:04 
AnswerRe: VB code Pin
Christian Graus29-Sep-07 14:15
protectorChristian Graus29-Sep-07 14:15 
AnswerRe: VB code Pin
Indrora30-Sep-07 7:33
Indrora30-Sep-07 7:33 
QuestionIs there a way out? Pin
twsted f829-Sep-07 11:12
twsted f829-Sep-07 11:12 
AnswerRe: Is there a way out? Pin
Dave Kreskowiak29-Sep-07 11:51
mveDave Kreskowiak29-Sep-07 11:51 
GeneralRe: Is there a way out? Pin
twsted f829-Sep-07 11:59
twsted f829-Sep-07 11:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.