2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / class / Mono.Data.Tds / Mono.Data.Tds.Protocol / TdsColumnType.cs
blobaf3f22716476d12b229123e01bed344cbe84436a
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, // SYBBINARY
34 Bit = 0x32, // SYBBIT
35 Char = 0x2f, // SYBCHAR
36 DateTime = 0x3d, // SYBDATETIME
37 DateTime4 = 0x3a, // SYBDATETIME4
38 DateTimeN = 0x6f, // SYBDATETIMN
39 Decimal = 0x6a, // SYBDECIMAL
40 Real = 0x3b, // SYBREAL
41 Float8 = 0x3e, // SYBFLT8
42 FloatN = 0x6d, // SYBFLTN
43 Image = 0x22, // SYBIMAGE
44 Int1 = 0x30, // SYBINT1
45 Int2 = 0x34, // SYBINT2
46 Int4 = 0x38, // SYBINT4
47 IntN = 0x26, // SYBINTN
48 Void = 0x1f, // SYBVOID
49 Text = 0x23, // SYBTEXT
50 UniqueIdentifier = 0x24,// SYBUNIQUE
51 VarBinary = 0x25, // SYBVARBINARY
52 VarChar = 0x27, // SYBVARCHAR
53 Money = 0x3c, // SYBMONEY
54 NText = 0x63, // SYBNTEXT
55 NVarChar = 0x67, // SYBNVARCHAR
56 BitN = 0x68, // SYBBITN
57 Numeric = 0x6c, // SYBNUMERIC
58 MoneyN = 0x6e, // SYBMONEYN
59 Money4 = 0x70,
60 NChar = 0xef, // XSYBNCHAR
61 BigBinary = 0xad, // XSYBBINARY
62 BigVarBinary = 0xa5, // XSYBVARBINARY
63 BigVarChar = 0xa7, // XSYBVARCHAR
64 BigNVarChar = 0xe7, // XSYBNVARCHAR
65 BigChar = 0xaf, // XSYBCHAR
66 SmallMoney = 0x7a, // SYBMONEY4
67 Variant = 0x62, // SYBVARIANT
68 BigInt = 0x7F // SYBINT8