October 17, 2008 at 5:29 am
SELECT COUNT(*) AS Records
FROM Members
WHERE (CourseCode = @CourseCode) AND (CourseSession = @CourseSession)
October 17, 2008 at 5:32 am
What is the problem here?
October 17, 2008 at 5:57 am
The query displays all 8 cloumns in my table. I just want to display the "Records" column only.
October 17, 2008 at 6:05 am
you've show us just part of your stored procedure, it looks like...the line you posted wil certainly only display a single column, "Records", so there must be a line in your stored proc AFTER the line you have shown us that is selecting more.
Lowell
October 17, 2008 at 6:47 am
Well, from the code you gave it is impossible to get 8 columns. if it is right code then you will get the number of records into record column. U r missing something.
October 17, 2008 at 7:13 am
Yes, you are correct. It returns one column after creating a separate tableadaptor for the query.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply