About 1,190,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 an …

  2. 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 on p...

  3. SQL Server Linked Server Example Query - Stack Overflow

    While in Management Studio, I am trying to run a query/do a join between two linked servers. Is this a correct syntax using linked db servers: select foo.id from databaseserver1.db1.table1 foo, ...

  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] od …

  5. How can I do an UPDATE statement with JOIN in SQL Server?

    2996 Syntax strictly depends on which SQL DBMS you're using. Here are some ways to do it in ANSI/ISO (aka should work on any SQL DBMS), MySQL, SQL Server, and Oracle.

  6. How to rename a table in SQL Server? - Stack Overflow

    The SQL query that I have used is : ALTER TABLE oldtable RENAME TO newtable; But, it gives me an error. Server: Msg 156, Level 15, State 1, Line 1 Incorrect syntax ...

  7. How to implement LIMIT with SQL Server? - Stack Overflow

    I have this query with MySQL: select * from table1 LIMIT 10,20 How can I do this with SQL Server?

  8. SQL Server Insert Example - Stack Overflow

    I switch between Oracle and SQL Server occasionally, and often forget how to do some of the most trivial tasks in SQL Server. I want to manually insert a row of data into a SQL Server database table

  9. What is the equivalent of 'describe table' in SQL Server?

    Nov 26, 2008 · The SQL Server equivalent to Oracle's describe command is the stored proc sp_help The describe command gives you the information about the column names, types, length, etc.

  10. sql server - How to fix Incorrect syntax near ')' - Stack Overflow

    How to fix Incorrect syntax near ')' Asked 9 years, 4 months ago Modified 1 year, 10 months ago Viewed 106k times