Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
count(*)
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
deeas
New Member
Join Date:
Feb 2009
Posts:
18
#1
count(*)
Feb 15 '09, 03:48 PM
hi
please how i can read the result of : select count(*) command
"SELECT count(*) as [a] FROM devices"
vekipeki
Recognized Expert
New Member
Join Date:
Nov 2007
Posts:
229
#2
Feb 16 '09, 08:13 AM
Check this:
SqlCommand.Exec uteScalar
Comment
Post
Cancel
Curtis Rutland
Recognized Expert
Specialist
Join Date:
Apr 2008
Posts:
3264
#3
Feb 17 '09, 01:26 PM
We have two on-site articles (one written by me!)
How To Use A Database In Your Program
How To Use A Database In Your Program Part II
Read the second one, I discuss exactly how to use the ExecuteScalar method.
If you don't understand everything, you should read the first one too.
Comment
Post
Cancel
hajoabdul
New Member
Join Date:
Mar 2009
Posts:
7
#4
Mar 5 '09, 12:50 PM
instead of ExecuteReader() try ExecuteScalar() am sure it will work
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment