Is there any way to select, for example, first 10 rows of a table in T-SQL (working MSSQL)? I think I saw something in Oracle defined as rownum meta variable, used in a
Try this.
declare @topval int set @topval = 5 (customized value) SELECT TOP(@topval) * from your_database