What is the equivalent SQL Server type for the C# long type?
C#Sql ServerC# Problem Overview
I'd like to know what the equivalent SQL Server type is for a long
in C#.
C# Solutions
Solution 1 - C#
The mapping table is clear - BIGINT
is the equivalent of Int64
(which is long
in C#).
Solution 2 - C#
The equivalent type is bigint
which is a 64-bit numeric type.
It fits numbers in the range from -2^63
to 2^63-1
which is the same as the C# long
type.