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

Visual Basic

 
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 
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 
It is relatively easy to do in sql, depending on your database structure. If you give a few more details of the database structure I am sure it will be easy to write a sql query - after all, its this type of thing sql was designed for.

Liqz wrote:
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.


Slow. Only ever use cursors if you have process on a record by record basis

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


Could do, but you are return large volumes of data which again, you would end up processing on a record by record basis.

If the data is held in a link table something like

contactid, categoryid

The query is

select categoryid, count(*) from links group by categoryid
or, if its a single column on the contacts table with different values

select categoryid, count(*) from contacts group by categoryid

Bob
Ashfield Consultants Ltd

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 
QuestionHow I can restrict desktop user to access some restricted web site Pin
AnjankumarMaity27-Jun-08 0:51
AnjankumarMaity27-Jun-08 0:51 
AnswerRe: How I can restrict desktop user to access some restricted web site Pin
Mycroft Holmes27-Jun-08 1:05
professionalMycroft Holmes27-Jun-08 1:05 

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.