NET Caching Library Help
ExecuteScalar(String) Method




KellermanSoftware.NetCachingLibrary.DatabaseProviders Namespace > BaseDatabaseProvider Class > ExecuteScalar Method : ExecuteScalar(String) Method
The SQL text to execute
Execute a query and return a single value
Syntax
'Declaration
 
Public Overloads Overridable Function ExecuteScalar( _
   ByVal sql As System.String _
) As System.Object
'Usage
 
Dim instance As BaseDatabaseProvider
Dim sql As System.String
Dim value As System.Object
 
value = instance.ExecuteScalar(sql)
public virtual System.object ExecuteScalar( 
   System.string sql
)
public: virtual System.Object* ExecuteScalar( 
   System.string* sql
) 
public:
virtual System.Object^ ExecuteScalar( 
   System.String^ sql
) 

Parameters

sql
The SQL text to execute
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

BaseDatabaseProvider Class
BaseDatabaseProvider Members
Overload List