Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Dynamic top records

Author  Topic 

sp_wiz
Yak Posting Veteran

55 Posts

Posted - 2001-06-21 : 19:00:15
I want to be able to set the number of records returned. I know I can use SELECT TOP 10 * from whatever

But i would like to say TOP @no_records

Do i have to put this in an Exec statement or is there another solution

Thanks
robp


   

- Advertisement -