View Single Post
  #4 (permalink)  
Old December 23rd, 2008, 01:50 PM
alliancejhall alliancejhall is offline
Friend of Wrox
 
Join Date: Nov 2007
Location: Central Florida, USA.
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default So...

you need help with the query to find the count?


Select Count(UserName) As ContactCount From tblUsers Where UserName=@UserName

this here is searching your database for users with the username supplied by you (@UserName is the search parameter) and counting them all up and returning that count

does that help you with what you need or do you also need the code to connect to the db run this query and return that data? if so what language?
C#? VB.net?
__________________
Jason Hall

Follow me on Twitter @jhall2013