SyntaxFix
Write A Post
Hire A Developer
Questions
Try this.
declare @topval int set @topval = 5 (customized value) SELECT TOP(@topval) * from your_database