C# SQL Top as parameter April 8, 2023 by Tarik In SQL Server 2005 and above, you can do this: SELECT TOP (@topparam) * from table1