Nota
L'accés a aquesta pàgina requereix autorització. Podeu provar d'iniciar la sessió o de canviar els directoris.
L'accés a aquesta pàgina requereix autorització. Podeu provar de canviar els directoris.
Executes a Transact-SQL statement and returns the first column of the first row as a value type.
Notas
If multiple batches are specified by using a StringCollection object then the result is an array of value types.
Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.
Lista de sobrecargas
| Nombre | 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.
|
Vea también
Referencia
ServerConnection Class
ServerConnection Members
Microsoft.SqlServer.Management.Common Namespace