**** Merged from MCS ****
[mono-project.git] / mcs / class / Mono.Data.Tds / Mono.Data.Tds.Protocol / TdsColumnType.cs
blobc95f0dc74446f531290a842d7e6fac3385b34e79
1 //
2 // Mono.Data.Tds.Protocol.TdsColumnType.cs
3 //
4 // Author:
5 // Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2002
8 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 //
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 //
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 namespace Mono.Data.Tds.Protocol {
32 public enum TdsColumnType {
33 Binary = 0x2d,
34 Bit = 0x32,
35 Char = 0x2f,
36 DateTime = 0x3d,
37 DateTime4 = 0x3a,
38 DateTimeN = 0x6f,
39 Decimal = 0x6a,
40 Real = 0x3b,
41 Float8 = 0x3e,
42 FloatN = 0x6d,
43 Image = 0x22,
44 Int1 = 0x30,
45 Int2 = 0x34,
46 Int4 = 0x38,
47 IntN = 0x26,
48 Void = 0x1f,
49 Text = 0x23,
50 UniqueIdentifier = 0x24, // This is TDS_BLOB in Sybase?
51 VarBinary = 0x25,
52 VarChar = 0x27,
53 Money = 0x3c,
54 NText = 0x63,
55 NVarChar = 0x67,
56 BitN = 0x68,
57 Numeric = 0x6c,
58 MoneyN = 0x6e,
59 Money4 = 0x70,
60 NChar = 0xef,
61 BigBinary = 0xad,
62 BigVarBinary = 0xa5,
63 BigVarChar = 0xa7,
64 BigChar = 0xaf,
65 SmallMoney = 0x7a