Hash Equivalent of SQL Server Data Types



The following table displays the C# equivalent of SQL Server datatypes −

SQL Server data type Equivalent C# data type
varbinary Byte[]
binary Byte[]
image None
varchar None
char None
nvarchar String, Char[]
nchar String, Char[]
text None
ntext None
rowversion Byte[]
bit Boolean
tinyint Byte
smallint Int16
int Int32
bigint Int64
smallmoney Decimal
money Decimal
numeric Decimal
decimal Decimal
real Single
float Double
smalldatetime DateTime
datetime DateTime
table None
cursor None
timestamp None
xml None
Updated on: 2020-06-20T17:18:20+05:30

16K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements