ServerConnection.ExecuteScalar 메서드

보호된 멤버 포함
상속된 멤버 포함

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

이 멤버는 오버로드됩니다. 구문, 사용법 및 예제를 포함하여 이 멤버에 대한 전체 정보를 확인하려면 오버로드 목록에서 이름을 클릭하십시오.

오버로드 목록

  이름 설명
공용 메서드 ExecuteScalar(StringCollection) Executes a batch of Transact-SQL statements and returns the first column of the first row as an object value.
공용 메서드 ExecuteScalar(String) Executes a Transact-SQL statement and returns the first column of the first row as an object value.

맨 위로 이동

주의

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

참고 항목

참조

ServerConnection 클래스

Microsoft.SqlServer.Management.Common 네임스페이스