What is the equivalent SQL Server type for the C# long type?

C#Sql Server

C# 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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJanivZView Question on Stackoverflow
Solution 1 - C#OdedView Answer on Stackoverflow
Solution 2 - C#Sergey KalinichenkoView Answer on Stackoverflow