Click here to Skip to main content
15,888,816 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: detect a connection string Pin
mehrnoosh27-Jun-08 20:28
mehrnoosh27-Jun-08 20:28 
GeneralRe: detect a connection string Pin
Christian Graus27-Jun-08 20:30
protectorChristian Graus27-Jun-08 20:30 
GeneralRe: detect a connection string Pin
mehrnoosh27-Jun-08 20:39
mehrnoosh27-Jun-08 20:39 
Questionarchive Pin
pinkidasu27-Jun-08 9:36
pinkidasu27-Jun-08 9:36 
AnswerRe: archive Pin
Christian Graus27-Jun-08 13:04
protectorChristian Graus27-Jun-08 13:04 
GeneralRe: archive Pin
pinkidasu30-Jun-08 3:34
pinkidasu30-Jun-08 3:34 
AnswerRe: archive Pin
Paul Conrad27-Jun-08 16:05
professionalPaul Conrad27-Jun-08 16:05 
QuestionApplication processing versus sql cursor processing Pin
Jay Royall27-Jun-08 5:44
Jay Royall27-Jun-08 5:44 
Not sure whether to put this query into the database section or here, but here goes.

I have a SQL Server database with a table of contacts (about 130,000 records). Each contact is a member of a category (9 different categories). What i need to do is count how many contacts are in each category for output in my vb.net application.

I can think of 2 methods to do this (actually 3 but the third is a definate no), which would you recommend.

Method 1 : Use a Cursor in a SQL Server stored procedure to iterate through all the contacts keeping a count of contacts in each category.

Method 2 : Get the data from the database and do the processing in my application.

Which approach do you think would ofrer the best performance?

(In case you were wondering, the 3rd method involves calling a stored procedure 9 times, once for each category and doing the count)
AnswerRe: Application processing versus sql cursor processing Pin
Tim Carmichael27-Jun-08 6:57
Tim Carmichael27-Jun-08 6:57 
AnswerRe: Application processing versus sql cursor processing Pin
Ashfield27-Jun-08 9:17
Ashfield27-Jun-08 9:17 
AnswerRe: Application processing versus sql cursor processing Pin
Paul Conrad27-Jun-08 16:07
professionalPaul Conrad27-Jun-08 16:07 
AnswerRe: Application processing versus sql cursor processing Pin
Jay Royall29-Jun-08 22:19
Jay Royall29-Jun-08 22:19 
QuestionCan some tell me why this would not work Pin
Kahuna27-Jun-08 4:52
Kahuna27-Jun-08 4:52 
GeneralRe: Can some tell me why this would not work Pin
Saul Johnson27-Jun-08 5:00
Saul Johnson27-Jun-08 5:00 
AnswerRe: Can some tell me why this would not work Pin
Jay Royall27-Jun-08 5:02
Jay Royall27-Jun-08 5:02 
AnswerRe: Can some tell me why this would not work Pin
Kahuna27-Jun-08 5:18
Kahuna27-Jun-08 5:18 
GeneralRe: Can some tell me why this would not work Pin
Kahuna27-Jun-08 5:21
Kahuna27-Jun-08 5:21 
QuestionPossible to use SciLexer in VB? [modified] Pin
Saul Johnson27-Jun-08 4:00
Saul Johnson27-Jun-08 4:00 
AnswerRe: Possible to use SciLexer in VB? Pin
Saul Johnson27-Jun-08 9:55
Saul Johnson27-Jun-08 9:55 
GeneralRe: Possible to use SciLexer in VB? Pin
Paul Conrad27-Jun-08 16:08
professionalPaul Conrad27-Jun-08 16:08 
AnswerRe: Possible to use SciLexer in VB? Pin
Alan Burkhart5-Oct-09 7:28
Alan Burkhart5-Oct-09 7:28 
GeneralRe: Possible to use SciLexer in VB? Pin
Saul Johnson8-Oct-09 8:17
Saul Johnson8-Oct-09 8:17 
QuestionCan someone please explain this to me!!!!!! Pin
Kahuna27-Jun-08 1:55
Kahuna27-Jun-08 1:55 
JokeRe: Can someone please explain this to me!!!!!! Pin
jzonthemtn27-Jun-08 2:28
jzonthemtn27-Jun-08 2:28 
AnswerRe: Can someone please explain this to me!!!!!! Pin
Paul Conrad27-Jun-08 16:09
professionalPaul Conrad27-Jun-08 16:09 

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.