bit |
N/A |
Boolean |
N/A |
tinyint |
N/A |
Byte |
N/A |
smallint |
N/A |
Int16 |
N/A |
int |
N/A |
Int32 |
N/A |
bigint |
N/A |
Int64 |
N/A |
float |
N/A |
Double |
N/A |
real |
N/A |
Single |
N/A |
decimal |
N/A |
Decimal |
Precision |
Minimum
Maximum
Default
Constant |
1
38
18
False |
Scale |
Minimum
Maximum
Default
Constant |
0
38
0
False |
|
numeric |
N/A |
Decimal |
Precision |
Minimum
Maximum
Default
Constant |
1
38
18
False |
Scale |
Minimum
Maximum
Default
Constant |
0
38
0
False |
|
smallmoney |
N/A |
Decimal |
Precision |
Default
Constant |
10
True |
Scale |
Default
Constant |
4
True |
|
money |
N/A |
Decimal |
Precision |
Default
Constant |
19
True |
Scale |
Default
Constant |
4
True |
|
binary |
N/A |
Binary |
MaxLength |
Minimum
Maximum
Default
Constant |
1
8000
8000
False |
FixedLength |
Default
Constant |
True
True |
|
varbinary
|
N/A |
Binary |
MaxLength |
Minimum
Maximum
Default
Constant |
1
8000
8000
False |
FixedLength |
Default
Constant |
False
True |
|
varbinary(max)
這個型別
不受 SQL Server 2000 支援。
|
|
N/A |
Binary |
MaxLength |
Default
Constant |
214748364780
True |
FixedLength |
Default
Constant |
False
True |
|
image |
N/A |
Binary |
MaxLength |
Default
Constant |
2147483647
True |
FixedLength |
Default
Constant |
False
True |
|
timestamp |
N/A |
Binary |
MaxLength |
Default
Constant |
8
True |
FixedLength |
Default
Constant |
True
True |
|
rowversion |
N/A |
Binary |
MaxLength |
Default
Constant |
8
True |
FixedLength |
Default
Constant |
True
True |
|
smalldatetime |
N/A |
DateTime |
Precision |
Default
Constant |
0
True |
|
datetime |
N/A |
DateTime |
Precision
|
Default
Constant |
3
True |
|
date
這個型別
不受 SQL Server 2005 和 SQL Server 2000 支援。 |
|
N/A |
DateTime |
Precision
|
Default
Constant |
0
Flase |
|
time
這個型別
不受 SQL Server 2005 和 SQL Server 2000 支援。
|
|
N/A |
Time |
Precision
|
Default
Constant |
7
Flalse |
|
datetime2
這個型別
不受 SQL Server 2005 和 SQL Server 2000 支援。
|
|
N/A |
DateTime |
Precision
|
Default
Constant |
7
Flalse |
|
datetimeoffset
這個型別
不受 SQL Server 2005 和 SQL Server 2000 支援。 |
|
N/A |
DateTimeOffset |
Precision
|
Default
Constant |
7
Flalse |
|
nvarchar
這個型別
不受 SQL Server 2000 支援。 |
|
N/A |
String |
MaxLength |
Minimum
Maximum
Default
Constant |
1
4000
4000
False |
Unicode |
Default
Constant |
True
True |
FixedLength |
Default
Constant |
False
True |
|
varchar
這個型別
不受 SQL Server 2000 支援。 |
|
N/A |
String |
MaxLength |
Minimum
Maximum
Default
Constant |
1
8000
8000
False |
Unicode |
Default
Constant |
False
True |
FixedLength |
Default
Constant |
False
True |
|
char |
N/A |
String |
MaxLength |
Minimum
Maximum
Default
Constant |
1
8000
8000
False |
Unicode |
Default
Constant |
False
True |
FixedLength |
Default
Constant |
True
True |
|
nchar |
N/A |
String |
MaxLength |
Minimum
Maximum
Default
Constant |
1
4000
4000
False |
Unicode |
Default
Constant |
True
True |
FixedLength |
Default
Constant |
True
True |
|
varchar(max) |
N/A |
String |
MaxLength |
Default
Constant |
2147483647
True |
Unicode |
Default
Constant |
False
True |
FixedLength |
Default
Constant |
False
True |
|
nvarchar(max) |
N/A |
String |
MaxLength |
Default
Constant |
1073741823
True |
Unicode |
Default
Constant |
True
True |
FixedLength |
Default
Constant |
False
True |
|
ntext |
Equal
(可比較) |
False |
Order
(可比較) |
False |
|
String |
MaxLength |
Default
Constant |
1073741823
True |
Unicode |
Default
Constant |
False
True |
FixedLength |
Default
Constant |
False
True |
|
text |
Equal
(可比較) |
False |
Order
(可比較) |
False |
|
String |
MaxLength |
Default
Constant |
2147483647
True |
Unicode |
Default
Constant |
False
True |
FixedLength |
Default
Constant |
False
True |
|
Unique
identifier |
Equal
(可比較) |
True |
Order
(可比較) |
True |
|
Guid |
N/A |
xml |
Equal
(可比較) |
False |
Order
(可比較) |
False |
|
String |
MaxLength |
Default
Constant |
1073741823
True |
Unicode |
Default
Constant |
True
True |
FixedLength |
Default
Constant |
False
True |
|