Dynamicweb 8 Documentation
ExecuteScalar Method

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.
Overload List
OverloadDescription
ExecuteScalar(String)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.  
ExecuteScalar(String,String)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.  
ExecuteScalar(String,IDbConnection)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.  
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Database Class
Database Members

Send Feedback