AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

SQL..::..ExecuteScalar Method (String, CommandType)

Executes a scalar query against the database.

Namespace:  AdvantageCMS.Data
Assembly:  AdvantageCMS.Data (in AdvantageCMS.Data.dll)

Syntax


public Object ExecuteScalar(
	string command,
	CommandType commandType
)

Parameters

command
Type: String
The Command to execute.
commandType
Type: CommandType
The Command type.

Return Value

The first row, first column value.