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

    Jun 29, 2009 · For the Decimal or Numeric data types, SQL Server considers each specific combination of precision and scale as a different data type. DECIMAL (2,2) and DECIMAL (2,4) are different data …

  2. SQL server query to get the list of columns in a table along with Data ...

    Mar 11, 2010 · I need to write a query on SQL server to get the list of columns in a particular table, its associated data types (with length) and if they are not null. And I have managed to do this much. But …

  3. Is there a Boolean data type in Microsoft SQL Server like there is in ...

    Jun 29, 2010 · 109 You may want to use the BIT data type, probably setting is as NOT NULL: Quoting the MSDN article: bit (Transact-SQL) An integer data type that can take a value of 1, 0, or NULL. The …

  4. How to get column details (column, datatype) of table in SQL Server?

    Jul 18, 2020 · I am new to databases, I just created a table using "New Table", but I want to list of columns and their properties as shown in the screenshot. What is the SQL command for this? I …

  5. How do I list user defined types in a SQL Server database?

    I need to enumerate all the user defined types created in a SQL Server database with CREATE TYPE, and/or find out whether they have already been defined. With tables or stored procedures I'd do

  6. Where do I find Sql Server metadata for column datatypes?

    from sys.columns c INNER JOIN sys.types t ON t.user_type_id = c.user_type_id As a side note, in SQL Server the system tables are deprecated (i.e. syscolumns, sysobjects) and it's recommended as a …

  7. sql - The data types text and varchar are incompatible in the equal to ...

    Jan 11, 2015 · I am trying to access the data empname from the employeeTable, but the code I have written is giving me the following error: The data types text and varchar are incompatible in the equal …

  8. How do I return the SQL data types from my query?

    Dec 17, 2014 · I need to create the staging table, but with hundreds of views/tables to dig through to find the data types that are being represented here, I have to wonder if there's a better way to construct …

  9. 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 ...

  10. sql server - Finding the data types of a SQL temporary table - Stack ...

    Yes, the data types of the temp table will be the data types of the columns you are selecting and inserting into it. So just look at the select statement and determine each data type based on the …