Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which versions of SQL Server does LINQ to SQL support?

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?

like image 775
Developer Avatar asked Jan 16 '09 21:01

Developer


2 Answers

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.

like image 187
Mark Brittingham Avatar answered Nov 10 '22 17:11

Mark Brittingham


Yes, you can.

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

like image 28
mmx Avatar answered Nov 10 '22 17:11

mmx