SQL Server 2012 and above have added this syntax:
SELECT *
FROM Sales.SalesOrderHeader
ORDER BY OrderDate
OFFSET (@Skip) ROWS FETCH NEXT (@Take) ROWS ONLY
More Related Contents:
- Using “GO” within a transaction
- Does End Using close an open SQL Connection
- Does this code prevent SQL injection?
- How can you name the Dataset’s Tables you return in a stored proc?
- Using a variable for table name in ‘From’ clause in SQL Server 2008
- How do you effectively model inheritance in a database?
- Like Operator in Entity Framework?
- Why did a network-related or instance-specific error occur while establishing a connection to SQL Server?
- store image in database or in a system file? [closed]
- SQL Identity (autonumber) is Incremented Even with a Transaction Rollback
- What is the correct SQL type to store a .Net Timespan with values > 24:00:00?
- How can I solve a connection pool problem between ASP.NET and SQL Server?
- Fastest way to perform nested bulk inserts with scope_identity() usage?
- Login failed for user ‘DOMAIN\MACHINENAME$’
- How to find foreign key dependencies in SQL Server?
- SELECT * FROM X WHERE id IN (…) with Dapper ORM
- Update primary key value using entity framework
- A connection was successfully established with the server, but then an error occurred during the pre-login handshake
- Parameterized Queries with LIKE and IN conditions
- SqlDateTime.MinValue != DateTime.MinValue, why?
- How to solve “unable to switch the encoding” error when inserting XML into SQL Server
- How to build RUNAS /NETONLY functionality into a (C#/.NET/WinForms) program?
- Procedure expects parameter which was not supplied
- TSQL md5 hash different to C# .NET md5
- How can I create database tables from XSD files?
- How can I avoid SQL injection attacks in my ASP.NET application?
- How to I serialize a large graph of .NET object into a SQL Server BLOB without creating a large buffer?
- Unable to load DLL ‘SqlServerSpatial.dll’
- .NET, the SqlConnection object, and multi-threading
- SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904)