@Top int
as
-- set how many records to return
SET ROWCOUNT @Top
SELECT * FROM
SET ROWCOUNT 0
Note : In SQL Server 2005 top can be used with varaiable
declare @i int
set @i=10
Select top(@i) * from sysobjects
I am an Ex-Sailor from Indian Navy who possesses rich experience in Microsoft SQL Server. I would take this opportunity to pay tribute to all those who serve their country with pride, always keeping “Service before Self”.
No comments:
Post a Comment