|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
ASP.NET COUNT
I'm new to ASP.NET and think I've missed something. In JSP and PHP it's normally pretty easy to get the result from a bog standard SQL COUNT statement. In ASP.NET it seems as though you have to bring back the whole data set, then count up the rows in it. This takes about 10x more lines than in PHP. Is this just me or is it really that much effort?
|
|
#2
|
|||
|
|||
|
You can do it in your select statement. <br><br>SELECT COUNT(*) FROM MyTable<p> </p><p><hr size="1" width="50%" align="left" />dotNetBB Forum Developer<br><b><i>Building A Better Community, One Post At A Time</i></b><br><a href="http://www.dotnetbb.com" target="_blank">www.dotnetbb.com</a></p>
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > ASP.NET COUNT |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|