About 995,000 results
Open links in new tab
  1. Why can't I insert a decimal into an sql server table?

    Nov 2, 2012 · I have a simple query: INSERT INTO tblIndicators (RunID, EventTS, MA1t3) Values (65, '11/2/2012 2:25:00 AM', 1.0); I get this error message: Msg 8115, Level 16, State 8, Line 1 …

  2. decimal and numeric (Transact-SQL) - SQL Server | Microsoft Learn

    Mar 31, 2025 · Convert decimal and numeric data. For decimal and numeric data types, SQL Server considers each combination of precision and scale as a different data type. For …

  3. SQL Server DECIMAL Data Type - GeeksforGeeks

    Dec 12, 2023 · Inserting Data. Let's insert some data into the Transactions table. INSERT INTO Transactions (TransactionID, Amount) VALUES (1, 123.451); INSERT INTO Transactions …

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

    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 …

  5. How to insert into SQL Server decimal column? - Stack Overflow

    Apr 10, 2012 · I'm using the MS JDBC driver for SQL Server, and trying to insert values into a decimal (18,5) column. The docs say that decimal columns map to BigDecimal, so I'm trying to …

  6. An Essential Guide To SQL Server DECIMAL Data Type

    This tutorial introduces to SQL Server DECIMAL data type and shows how to use it to store exact numeric values in the database.

  7. SQL Decimal: Guide and Examples - Database Star

    Jan 5, 2024 · Let’s see some examples of creating an SQL DECIMAL data type, including how to insert data into a decimal and how to select data. Example 1: Create Table with Decimal. This …

  8. SQL Server DECIMAL: Everything you need to know

    Aug 23, 2021 · SQL Server gives you the ability to specify how many decimal digits should be stored for your number. This gives you control of how much space in memory your number …

  9. Understanding the SQL Decimal data type - SQL Shack

    Jul 15, 2019 · Let’s quickly create a new table, named Patients, that makes use of decimal data type for columns height and weight. We will insert a few rows using an INSERT clause as …

  10. HOW TO INSERT VALUE FOR THIS TABLE WHICH IS HAVING DECIMAL

    Jun 11, 2012 · Cleaned up your code and fixed some data types based on the sample data you were trying to insert. You may want to delete or comment out the DROP TABLE statement. I …

  11. Some results have been removed