Executes a SQL query and returns the result as a DataSet.
- Namespace
- DbSyncKit
.MSSQL - Containing Type
- Connection
- Implements
Syntax
public DataSet ExecuteQuery(string query, string tableName)
Parameters
Name | Type | Description |
---|---|---|
query | string | The SQL query string. |
tableName | string | The name to be assigned to the result table in the DataSet. |
Return Value
Type | Description |
---|---|
DataSet | A DataSet containing the result of the query. |