Compartir a través de


ExecuteScalar Método

Executes a Transact-SQL statement and returns the first column of the first row as a value type.

Lista de sobrecargas

  Nombre Descripción
Método publico ExecuteScalar(StringCollection) Executes a batch of Transact-SQL statements and returns the first column of the first row as an object value.
Método publico ExecuteScalar(String) Executes a Transact-SQL statement and returns the first column of the first row as an object value.

Principio

Notas

If multiple batches are specified by using a StringCollection object then the result is an array of value types.