What is the C# Equivalent of SQL Server DataTypes?

CsharpProgrammingServer Side Programming

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

SQL Server data typeEquivalent C# data type
varbinaryByte[]
binaryByte[]
imageNone
varcharNone
charNone
nvarcharString, Char[]
ncharString, Char[]
textNone
ntextNone
rowversionByte[]
bitBoolean
tinyintByte
smallintInt16
intInt32
bigintInt64
smallmoneyDecimal
moneyDecimal
numericDecimal
decimalDecimal
realSingle
floatDouble
smalldatetimeDateTime
datetimeDateTime
tableNone
cursorNone
timestampNone
xmlNone
raja
Published on 13-Aug-2018 11:20:24
Advertisements