private Run ( RunBehavior runBehavior, |
||
runBehavior | RunBehavior | |
cmdHandler | ||
dataStream | System.Data.SqlClient.SqlDataReader | |
bulkCopyHandler | System.Data.SqlClient.BulkCopySimpleResultSet | |
stateObj | System.Data.SqlClient.TdsParserStateObject | |
return | bool |
private void RestoreServerSettings(TdsParser parser, TdsParserStateObject stateObj) { if ((parser != null) && (this._resetOptionsString != null)) { if (parser.State == TdsParserState.OpenLoggedIn) { parser.TdsExecuteSQLBatch(this._resetOptionsString, (this._command != null) ? this._command.CommandTimeout : 0, null, stateObj); parser.Run(RunBehavior.UntilDone, this._command, this, null, stateObj); } this._resetOptionsString = null; } }