MSSQLStringValue extension method

This method defines and converts the encoding of MSSQLServer StringValue’s to UTF8 encoded strings. DO NOT use on national (n) defined columns e.g. nVarChar(x).

Public Function MSSQLStringValue(Extends Value As DatabaseColumn) As String
  Return Value.StringValue.DefineEncoding(Encodings.WindowsANSI).ConvertEncoding(Encodings.UTF8)
End Function