C# SQL Top as parameter

In SQL Server 2005 and above, you can do this:

SELECT TOP (@topparam) * from table1

Leave a Comment