How does SQL Server store decimal type values internally?
问题 In SQL Server you can use FLOAT or REAL to store floating point values the storage format of which is cleared defined by the IEEE 754 standard. For fixed point values we can use DECIMAL type (which has a synonym NUMERIC ). However I'm not pretty sure how SQL Server store DECIMAL values internally. For example, if I define a table and insert a row like this: IF OBJECT_ID('dbo.test_number_types') IS NOT NULL DROP TABLE dbo.test_number_types; CREATE TABLE dbo.test_number_types ( id INT IDENTITY