Which versions of SQL Server does LINQ to SQL support?

前端 未结 3 1167
不思量自难忘°
不思量自难忘° 2020-12-20 17:54

Can SQL Server 2000 be used as the database for LINQ to SQL?

Does LINQ to SQL rely on a specific version of Microsoft SQL Server?

3条回答
  •  渐次进展
    2020-12-20 18:16

    Yes, LINQ to SQL works with SQL Sever 2000 with one exception: you do need the ROW_NUMBER() function, available only in SQL Server 2005/2008, to support efficient server-side paging. Without it, paging functions (as Mehrdad points out) are delivered using the classic Top N strategy - very inefficient as you page further and further through your dataset because you end up throwing out most of your selected records from the third page on.

提交回复
热议问题