Mimer SQL Data Provider
ExecuteScalar Method (MimerBatch)




Mimer.Data.Client Namespace > MimerBatch Class : ExecuteScalar Method
Executes the query, and returns the first column of the first row in the result set returned by the query. Note that extra columns and/or rows are ignored.
Syntax
'Usage
 
Dim instance As MimerBatch
Dim value As Object
 
value = instance.ExecuteScalar()
public override object ExecuteScalar()
public function ExecuteScalar(): TObject; override; 
public override function ExecuteScalar() : Object;
public: Object* ExecuteScalar(); override 

Return Value

The first column of the first row in the result set. If the result set is empty, a null reference is returned.
Exceptions
ExceptionDescription
Dispose has been called for the MimerBatch
No Connection has been set on the MimerBatch or the connection is not Open.
Requirements

.NET Framework
Version 4.6.2 or later

See Also

Reference

MimerBatch Class
MimerBatch Members