About 555,000 results
Open links in new tab
  1. Difference between numeric, float and decimal in SQL Server

    Jun 29, 2009 · The parameter supplied to the float data type defines the number of bits that are used to store the mantissa of the floating point number. Approximate Numeric Data Type usually uses less …

  2. How to store decimal values in SQL Server? - Stack Overflow

    302 I'm trying to figure out decimal data type of a column in the SQL Server. I need to be able to store values like 15.5, 26.9, 24.7, 9.8, etc I assigned decimal(18, 0) to the column data type but this not …

  3. Should you choose the MONEY or DECIMAL(x,y) datatypes in SQL Server?

    I wondered why the money data type has 4 decimals .. and not 2. i.e. 100 cents in a dollar so only 2 decimal places are required? For storing a record of money amounts less than $9999.99, I was going …

  4. .net - C# Equivalent of SQL Server DataTypes - Stack Overflow

    SQL Server and the .NET Framework are based on different type systems. For example, the .NET Framework Decimal structure has a maximum scale of 28, whereas the SQL Server decimal and …

  5. What datatype to use when storing latitude and longitude data in SQL ...

    When storing latitude or longitude data in an ANSI SQL compliant database, what datatype would be most appropriate? Should float be used, or decimal, or ...? I'm aware that Oracle, MySql, and SQL ...

  6. sql - How do I interpret precision and scale of a number in a database ...

    The example quoted by would have a precision of 7 and a scale of 2. Moreover, DECIMAL (precision, scale) is an exact value data type unlike something like a FLOAT (precision, scale) which stores …

  7. Decimal precision and scale in EF Code First - Stack Overflow

    Aug 17, 2010 · I'm experimenting with this code-first approach, but I'm find out now that a property of type System.Decimal gets mapped to a sql column of type decimal(18, 0). How do I set the precision …

  8. How to change data type of a column in an SQL table from integer to …

    I have assigned the data type of one of the columns of a table I have created as int. My problem is that it is not showing decimal places when I run a query against it. How do I correct the data ...

  9. sql - VARCHAR to DECIMAL - Stack Overflow

    I want to convert a varchar(max) column to decimal(10,4). When I try to use cast or convert I am getting an arithmetic overflow exception. The issue is that the data stored in the varchar column may

  10. sql server - Appropriate datatype for holding percent values? - Stack ...

    May 4, 2010 · Assuming two decimal places on your percentages, the data type you use depends on how you plan to store your percentages: If you are going to store their fractional equivalent (e.g. …