About 2,960,000 results
Open links in new tab
  1. Should I use != or <> for not equal in T-SQL? - Stack Overflow

    Yes; Microsoft themselves recommend using <> over != specifically for ANSI compliance, e.g. in Microsoft Press training kit for 70-461 exam, "Querying Microsoft SQL Server", they say "As …

  2. sql - How do I list all the columns in a table? - Stack Overflow

    Microsoft SQL Server Management Studio 2008 R2: In a query editor, if you highlight the text of table name (ex dbo.MyTable) and hit ALT + F1, you'll get a list of column names, type, length, …

  3. PowerBI On-Premises Data Gateway Unable to Connect to SQL …

    Feb 11, 2025 · Explains how to resolve PowerBI On-Premises Data Gateway's inability to connect to SQL Server due to certificate issues.

  4. 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] …

  5. Convert Month Number to Month Name Function in SQL

    Oct 9, 2008 · 0 SQL Server nowadays can get the ordinalnummer of a comma separated value of values, using the STRING_SPLIT function Also the names of the month are already stored in …

  6. How do I perform an IF...THEN in an SQL SELECT?

    Sep 15, 2008 · The CASE statement is the closest to IF in SQL and is supported on all versions of SQL Server. SELECT CAST( CASE WHEN Obsolete = 'N' or InStock = 'Y' THEN 1 ELSE 0 …

  7. SQL JOIN: what is the difference between WHERE clause and ON …

    SQL INNER JOIN The SQL JOIN clause allows you to associate rows that belong to different tables. For instance, a CROSS JOIN will create a Cartesian Product containing all possible …

  8. sql - Incorrect syntax near '' - Stack Overflow

    I'm trying to run the following fairly simple query in SQL Server Management Studio: SELECT TOP 1000 * FROM master.sys.procedures as procs left join master.sys.parameters as params …

  9. sql - Efficiently convert rows to columns - Stack Overflow

    I'm looking for an efficient way to convert rows to columns in SQL Server, I heard that PIVOT is not very fast, and I need to deal with lot of records. This is my example: Id Value ColumnName …

  10. SQL: IF clause within WHERE clause - Stack Overflow

    Sep 18, 2008 · Is it possible to use an IF clause within a WHERE clause in MS SQL? Example: WHERE IF IsNumeric(@OrderNumber) = 1 OrderNumber = @OrderNumber ELSE …