About 6,300,000 results
Open links in new tab
  1. What is the best way to paginate results in SQL Server

    Mar 13, 2012 · What is the best way (performance wise) to paginate results in SQL Server 2000, 2005, 2008, 2012 if you also want to get the total number of results (before paginating)?

  2. How to select data of a table from another database in SQL Server?

    Suppose that I have a database which name is testdb in test server. I also have a database named proddb in prod server. Now I want to select data of a table of testdb database from proddb database....

  3. Equivalent of LIMIT and OFFSET for SQL Server? - Stack Overflow

    In PostgreSQL there is the Limit and Offset keywords which will allow very easy pagination of result sets. What is the equivalent syntax for SQL Server?

  4. sql - How do I limit the number of rows returned by an Oracle query ...

    Is there a way to make an Oracle query behave like it contains a MySQL limit clause? In MySQL, I can do this: select * from sometable order by name limit 20,10 to get the 21st to the 30th rows (s...

  5. Row Offset in SQL Server - Stack Overflow

    Oct 9, 2008 · With SQL Server 2012 (11.x) and later and Azure SQL Database, you can also have "fetch_row_count_expression", you can also have ORDER BY clause along with this.

  6. how do I query sql for a latest record date for each user

    1 To get the latest record date along with the corresponding value for each user, you can use a subquery or a common table expression (CTE) in SQL. Here’s a solution using a CTE (if your SQL …

  7. How can I get column names from a table in SQL Server?

    Jun 28, 2009 · I want to query the name of all columns of a table. I found how to do this in: Oracle MySQL PostgreSQL But I also need to know: how can this be done in Microsoft SQL Server (2008 in …

  8. java - What does Statement.setFetchSize (nSize) method really do in …

    The default fetch-size is 10, which is rather small. In the case posted, it would appear the driver is ignoring the fetch-size setting, retrieving all data in one call (large RAM requirement, optimum …

  9. SQL Server SELECT LAST N Rows - Stack Overflow

    Nov 16, 2010 · For T-SQL, relace "LIMIT N" with "OFFSET 0 ROWS" followed by "FETCH NEXT N ROWS ONLY". Where N is the integer for number of rows.

  10. SQL - Select first 10 rows only? - Stack Overflow

    Dec 12, 2009 · ORDER BY num DESC OFFSET 20 ROWS FETCH FIRST 10 ROWS ONLY Will skip the first 20 rows, and then fetch 10 rows. Supported by newer versions of Oracle, PostgreSQL, MS …