Click here to Skip to main content
15,917,320 members
Home / Discussions / Database
   

Database

 
GeneralRe: Build Database Pin
Christian Graus20-Apr-07 2:30
protectorChristian Graus20-Apr-07 2:30 
GeneralRe: Build Database Pin
Navneet Hegde20-Apr-07 2:35
Navneet Hegde20-Apr-07 2:35 
GeneralRe: Build Database Pin
Colin Angus Mackay20-Apr-07 3:07
Colin Angus Mackay20-Apr-07 3:07 
GeneralRe: Build Database Pin
Navneet Hegde20-Apr-07 3:15
Navneet Hegde20-Apr-07 3:15 
GeneralRe: Build Database Pin
Colin Angus Mackay20-Apr-07 6:54
Colin Angus Mackay20-Apr-07 6:54 
GeneralRe: Build Database Pin
Jerry Hammond20-Apr-07 17:34
Jerry Hammond20-Apr-07 17:34 
QuestionCount Issues Pin
Sam Heller20-Apr-07 0:24
Sam Heller20-Apr-07 0:24 
AnswerRe: Count Issues Pin
Colin Angus Mackay20-Apr-07 0:28
Colin Angus Mackay20-Apr-07 0:28 
Remove all the items from the SELECT list and replace with COUNT(*). Remove the ORDER BY clause.

If the grouping causes a problem, do it as a subquery

SELECT COUNT(*) FROM (SELECT ... )

You can then access the value using ExecuteScalar from your application.


Upcoming events:
* Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services...

Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton


My website

GeneralRe: Count Issues Pin
Sam Heller20-Apr-07 1:10
Sam Heller20-Apr-07 1:10 
GeneralRe: Count Issues Pin
Chetan Ranpariya20-Apr-07 1:45
Chetan Ranpariya20-Apr-07 1:45 
GeneralRe: Count Issues Pin
Sam Heller20-Apr-07 1:46
Sam Heller20-Apr-07 1:46 
GeneralRe: Count Issues Pin
andyharman20-Apr-07 1:52
professionalandyharman20-Apr-07 1:52 
GeneralRe: Count Issues Pin
Sam Heller20-Apr-07 2:03
Sam Heller20-Apr-07 2:03 
QuestionDelete all Tables in MS ACCESS Pin
PavanPareta19-Apr-07 21:25
PavanPareta19-Apr-07 21:25 
AnswerRe: Delete all Tables in MS ACCESS Pin
Colin Angus Mackay20-Apr-07 2:26
Colin Angus Mackay20-Apr-07 2:26 
GeneralRe: Delete all Tables in MS ACCESS Pin
DQNOK20-Apr-07 3:28
professionalDQNOK20-Apr-07 3:28 
GeneralRe: Delete all Tables in MS ACCESS Pin
Colin Angus Mackay20-Apr-07 6:55
Colin Angus Mackay20-Apr-07 6:55 
AnswerRe: Delete all Tables in MS ACCESS Pin
DQNOK20-Apr-07 8:58
professionalDQNOK20-Apr-07 8:58 
Questionhow to get column wise data in a row in sql ? Pin
ahmedalisha19-Apr-07 20:07
ahmedalisha19-Apr-07 20:07 
AnswerRe: how to get column wise data in a row in sql ? Pin
Colin Angus Mackay20-Apr-07 0:31
Colin Angus Mackay20-Apr-07 0:31 
GeneralRe: how to get column wise data in a row in sql ? Pin
ahmedalisha20-Apr-07 2:26
ahmedalisha20-Apr-07 2:26 
AnswerRe: how to get column wise data in a row in sql ? Pin
Shetty_8020-Apr-07 3:17
Shetty_8020-Apr-07 3:17 
QuestionRe: how to get column wise data in a row in sql ? Pin
M.H.1.2.320-Apr-07 12:03
M.H.1.2.320-Apr-07 12:03 
QuestionSql Server 2005 connection problem Pin
sangramkp19-Apr-07 19:35
sangramkp19-Apr-07 19:35 
AnswerRe: Sql Server 2005 connection problem Pin
Sathesh Sakthivel19-Apr-07 19:53
Sathesh Sakthivel19-Apr-07 19:53 

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.