Share via


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