I'd like to know what the equivalent SQL Server type is for a long
in C#.
The main difference between C# and SQL is that C# is a back-end programming language, whereas SQL is a database language. Unlike the C sharp that focuses majorly on programming, SQL focused more on data management and information retrieval.
Use TYPE_NAME() to Get the Name of a Data Type in SQL Server This can be useful when querying a system view such as sys. columns that returns the type's ID but not its name. You can use TYPE_NAME() for system data types and user-defined data types.
The mapping table is clear - BIGINT
is the equivalent of Int64
(which is long
in 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With