Поделиться через


ServerConnection.ExecuteScalar Method

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

Замечания

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

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Список перегрузок

Имя Description
ServerConnection.ExecuteScalar (String)
Executes a Transact-SQL statement and returns the first column of the first row as an object value.
ServerConnection.ExecuteScalar (StringCollection)
Executes a batch of Transact-SQL statements and returns the first column of the first row as an object value.

См. также

Справочник

ServerConnection Class
ServerConnection Members
Microsoft.SqlServer.Management.Common Namespace

Другие ресурсы

Calling Methods