Which versions of SQL Server does LINQ to SQL support?

前端 未结 3 1158
不思量自难忘°
不思量自难忘° 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:02

    Yes, you can.

    LINQ to SQL adapts the generated queries to work with 2000.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-20 18:17

    As of VS 2010, L2S for SQL Server 2000 is not supported under any scenario (although some third party tools add support back).

    0 讨论(0)
提交回复
热议问题