System.Data.SqlClient.TdsParser.ThrowUnsupportedCollationEncountered C# (CSharp) Method

ThrowUnsupportedCollationEncountered() private method

private ThrowUnsupportedCollationEncountered ( System.Data.SqlClient.TdsParserStateObject stateObj ) : void
stateObj System.Data.SqlClient.TdsParserStateObject
return void
        internal void ThrowUnsupportedCollationEncountered(TdsParserStateObject stateObj)
        {
            stateObj.AddError(new SqlError(0, 0, TdsEnums.MIN_ERROR_CLASS, _server, SQLMessage.CultureIdError(), "", 0));

            if (null != stateObj)
            {
                DrainData(stateObj);

                stateObj._pendingData = false;
            }

            ThrowExceptionAndWarning(stateObj);
        }
TdsParser