Click here to Skip to main content
15,927,699 members
Home / Discussions / Database
   

Database

 
GeneralRe: Build Database Pin
Colin Angus Mackay20-Apr-07 2:28
Colin Angus Mackay20-Apr-07 2:28 
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 
SELECT MIN(BankID) AS DBComboValue, (BankSortCode) As DBComboText, BankName, BankAddress3<br />
            FROM tblBanks <br />
            WHERE BankSortCode LIKE @Query<br />
			AND BankActive = 1<br />
            GROUP BY BankSortCode, BankName, BankAddress3<br />
            ORDER BY BankSortCode ASC<br />
<br />
Return @@RowCount


I have the following code to retrieve a count of rows in a result set. It works but I don't want the result set to be returned. All I want is the RowCount. My original approach was to use COUNT in the main query but I couldn't seem to get this working due to the grouping I perform. Therefore I decided to use @@RowCount and hence my current problem.

Thanks in advance.
AnswerRe: Count Issues Pin
Colin Angus Mackay20-Apr-07 0:28
Colin Angus Mackay20-Apr-07 0:28 
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 

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.