About 170,000 results
Open links in new tab
  1. 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?

  2. Shortcuts to comment and uncomment SQL queries in SQL Server …

    Aug 22, 2022 · To comment 3 SQL queries with shortcuts in SQL Server Management Studio(SSMS) as shown below, first, I dragged them, then pressed only one of CTRL+K or CTRL+C but I couldn't …

  3. Convert Rows to columns using 'Pivot' in SQL Server

    Apr 10, 2013 · If you are using SQL Server 2005+, then you can use the PIVOT function to transform the data from rows into columns. It sounds like you will need to use dynamic sql if the weeks are …

  4. Create Local SQL Server database - Stack Overflow

    Apr 11, 2017 · After installation you need to connect to Server Name : localhost to start using the local instance of SQL Server. Once you are connected to the local instance, right click on Databases and …

  5. How do I see active SQL Server connections? - Stack Overflow

    Jan 21, 2019 · I am using SQL Server 2008 Enterprise. I want to see any active SQL Server connections, and the related information of all the connections, like from which IP address, connect …

  6. List the queries running on SQL Server - Stack Overflow

    Is there a way to list the queries that are currently running on MS SQL Server (either through the Enterprise Manager or SQL) and/or who's connected? I think I've got a very long running query is ...

  7. LIMIT 10..20 in SQL Server - Stack Overflow

    Jun 10, 2009 · I'm trying to do something like : SELECT * FROM table LIMIT 10,20 or SELECT * FROM table LIMIT 10 OFFSET 10 but using SQL Server The only solution I found looks like overkill: …

  8. How to find SQL Server running port? - Stack Overflow

    Yes I read this How to find the port for MS SQL Server 2008? no luck. telnet 1433 returns connection failed, so I must specify other port. I tried to use netstat -abn but I don't see sqlservr...

  9. sql server - How to get the list of all database users - Stack Overflow

    Sep 18, 2013 · I am going to get the list of all users, including Windows users and 'sa', who have access to a particular database in MS SQL Server. Basically, I would like the list to look like as what is shown ...

  10. How do I obtain a Query Execution Plan in SQL Server?

    In Microsoft SQL Server how can I get a query execution plan for a query / stored procedure?