If called from a Script or external application, a disconnected DataTable will always be assumed
| Name | Type | Optional | ByRef | Description |
|---|---|---|---|---|
| dataReader | IDataReader | ByRef | The DataReader object to create. | |
| useDisconnectedDataTable | Boolean | Optional | True to create a DataTable and open a DataReader based on this. Since only one connected DataReader is allowed to be open at one time for most databases, a disconnected DataReader should be used if there is any chance that there is already a connected DataReader open. If omitted, a value of False is assumed. | |
| disconnectedRowCount | Integer | Optional | ByRef | When using a disconnected DataTable, this will be set to a count of the rows retrieved. If omitted, a value of 0 is assumed. |
| timeoutSeconds | Integer | Optional | The number of seconds after which a database connection timeout will occur or -1 to use the default timeout. If omitted, a value of -1 is assumed. |
A Boolean value indicating success.