private TdsExecuteSQLBatch ( string text, int timeout, System.Data.SqlClient.TdsParserStateObject stateObj, bool sync, bool callerHasConnectionLock = false ) : System.Threading.Task | ||
text | string | |
timeout | int | |
stateObj | System.Data.SqlClient.TdsParserStateObject | |
sync | bool | |
callerHasConnectionLock | bool | |
return | System.Threading.Task |
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; } }