Total members 9936 | Gratitudes |It is currently Sun Feb 05, 2012 8:04 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: hi need a answer
PostPosted: Mon Jun 15, 2009 8:53 am 
Offline
Newbie
User avatar

Joined: Mon Jun 15, 2009 8:39 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time

hi friends having one doubt in asp.net so pls if you can help me


What is the purpose of Execute scalar method of Command object ?


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: hi need a answer
PostPosted: Fri Jun 19, 2009 3:56 am 
Offline
Newbie
User avatar

Joined: Fri Mar 20, 2009 4:03 am
Posts: 21
Location: Indonesia
Has thanked: 0 time
Have thanks: 0 time
ExecuteScalar method is to retrieve a single value, for example, an aggregate value, from a data source. This requires less code than using the ExecuteReader method, and then performing the operations that are required to generate the single value using the data returned by an OleDbDataReader.

It only Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored.

_________________
***
Miracle's in your hands
***
Do you Love stories? visit this : http://melyablackrose.blogspot.com/. I bet you won't be sorry


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 Check your answer in about years kids.  General Discussion  Anonymous  0

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team