About 1,620,000 results
Open links in new tab
  1. How do I return the SQL data types from my query?

    Dec 17, 2014 · For SQL Server 2012 and above: If you place the query into a string then you can get the result set data types like so: DECLARE @query nvarchar(MAX) = 'select 12.1 / 10.1 AS [Column1]'; …

  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. Difference between numeric, float and decimal in SQL Server

    Jun 29, 2009 · Exact Numeric Data Types decimal and numeric - MSDN numeric = decimal (5 to 17 bytes) will map to Decimal in .NET both have (18, 0) as default (precision,scale) parameters in SQL …

  4. DateTime2 vs DateTime in SQL Server - Stack Overflow

    Aug 26, 2009 · The MSDN documentation for datetime recommends using datetime2. Here is their recommendation: Use the time, date, datetime2 and datetimeoffset data types for new work. These …

  5. 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 …

  6. sql server - SSIS Package: convert between unicode and non-unicode ...

    Jan 23, 2015 · The Oracle data type VARCHAR2 appears to be equivalent to NVARCHAR in SQL Server, or DT_WSTR in SSIS. Reference You will have to convert using the Data Conversion …

  7. pyspark data type translation to sql server data types on df.write

    Aug 1, 2023 · The specified types should be valid spark sql data types. But how do they translate to sql server types? I could not find a mapping table. For instance, float gets translated to REAL in sql …

  8. 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 …

  9. SQL Server: most commonly used data types? - Stack Overflow

    Jul 30, 2016 · I'm a bit confused as there are many variable types in sql server (ntext, varchar, nvarchar, etc) so maybe if you give me what data types you use for the following fields I'll understand this a lit...

  10. Best data type for storing strings in SQL Server?

    Sep 7, 2010 · What's the best data type to be used when storing strings, like a first name? I've seen varchar and nvarchar both used. Which one is better? Does it matter? See What is the difference …