序號
|
類別
|
SQLServer
|
C Sharp
|
備註
|
1
|
整數
|
bit
|
Boolean
|
True轉換爲1False轉換爲0
|
2
|
tinyint
|
Byte
|
C Sharp 數據類型都位於System命名空間
|
|
3
|
smallint
|
Int16
|
||
4
|
int
|
Int32
|
||
5
|
bigint
|
Int64
|
||
6
|
smallmoney
|
Decimal
|
||
7
|
money
|
Decimal
|
||
8
|
numeric
|
Decimal
|
||
9
|
decimal
|
Decimal
|
||
10
|
浮點數
|
float
|
Double
|
|
11
|
real
|
Single
|
||
12
|
日期和時間
|
smalldatetime
|
DateTime
|
|
13
|
datetime
|
DateTime
|
||
14
|
timestamp
|
DateTime
|
||
15
|
字符串
|
char
|
String
|
|
16
|
text
|
String
|
||
17
|
varchar
|
String
|
||
18
|
nchar
|
String
|
||
19
|
ntext
|
String
|
||
20
|
nvarchar
|
String
|
||
21
|
二進制數據
|
binary
|
Byte[]
|
|
22
|
varbinary
|
Byte[]
|
||
23
|
image
|
Byte[]
|
||
24
|
其餘
|
uniqueidentifier
|
Guid
|
|
25
|
Variant
|
Object
|