Executes the query and returns the first column of the first row in the result set that is returned by the query. Extra columns or rows are ignored.
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Cannot execute a command within a transaction context that differs from the context in which the connection was originally enlisted.
The following example creates a SqlCeCommand and then executes it using . The example is passed a string that is an SQL statement, which returns an aggregate result, and a string for connecting to the data source.