नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
Executes a Transact-SQL statement and returns the first column of the first row as a value type.
Remarks
If multiple batches are specified by using a StringCollection object then the result is an array of value types.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Overload List
| Name | 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.
|
See Also
Reference
ServerConnection Class
ServerConnection Members
Microsoft.SqlServer.Management.Common Namespace