ExecuteWithResults 方法 (String)
Executes a Transact-SQL statement that returns a result set.
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Function ExecuteWithResults ( _
sqlCommand As String _
) As DataSet
'用途
Dim instance As ServerConnection
Dim sqlCommand As String
Dim returnValue As DataSet
returnValue = instance.ExecuteWithResults(sqlCommand)
public DataSet ExecuteWithResults(
string sqlCommand
)
public:
DataSet^ ExecuteWithResults(
String^ sqlCommand
)
member ExecuteWithResults :
sqlCommand:string -> DataSet
public function ExecuteWithResults(
sqlCommand : String
) : DataSet
參數
- sqlCommand
型別:System. . :: . .String
A String value that specifies the Transact-SQL command to be executed.
傳回值
型別:System.Data. . :: . .DataSet
A DataSet system object value that contains the result set.