About 3,950,000 results
Open links in new tab
  1. SQL Server String or binary data would be truncated

    SQL Server 2017 CU12 also supports this feature. Improvement: Optional replacement for "String or binary data would be truncated" message with extended information in SQL Server 2017 This SQL …

  2. sql - NOT IN vs NOT EXISTS - Stack Overflow

    Which of these queries is the faster? NOT EXISTS: SELECT ProductID, ProductName FROM Northwind..Products p WHERE NOT EXISTS ( SELECT 1 FROM Northwind..[Order Details] od …

  3. How to select unique records by SQL - Stack Overflow

    How to select unique records by SQL Asked 16 years, 1 month ago Modified 1 year, 10 months ago Viewed 747k times

  4. Truncate (not round) decimal places in SQL Server

    I'm trying to determine the best way to truncate or drop extra decimal places in SQL without rounding. For example: declare @value decimal(18,2) set @value = 123.456 This will automatically round @

  5. SQL WHERE.. IN clause multiple columns - Stack Overflow

    SELECT * FROM table1 WHERE (CM_PLAN_ID, Individual_ID) IN ( SELECT CM_PLAN_ID, Individual_ID FROM CRM_VCM_CURRENT_LEAD_STATUS WHERE Lead_Key = :_Lead_Key ) …

  6. sql - Find all tables containing column with specified name - Stack ...

    @Revious INFORMATION_SCHEMA views included in SQL Server comply with the ISO standard definition for the INFORMATION_SCHEMA., sys.columns, sys.tables is Microsoft Sql Server specific.

  7. How to convert a datetime to string in T-SQL - Stack Overflow

    In addition to the CAST and CONVERT functions in the previous answers, if you are using SQL Server 2012 and above you use the FORMAT function to convert a DATETIME based type to a string.

  8. Retrieve the maximum length of a VARCHAR column in SQL Server

    Many times you want to identify the row that has that column with the longest length, especially if you are troubleshooting to find out why the length of a column on a row in a table is so much longer than …

  9. How do I check if a Sql server string is null or empty

    Select Coalesce(listing.OfferText, company.OfferText, '') As Offer_Text, from tbl_directorylisting listing Inner Join tbl_companymaster company On listing.company_id= company.company_id But I want to …

  10. SQL to find the number of distinct values in a column

    SQL to find the number of distinct values in a column Asked 17 years, 2 months ago Modified 2 years, 7 months ago Viewed 826k times