January 15, 2012

SET ROWCOUNT in SQL Server

We can limit select results using SET ROWCOUNT.

SELECT * FROM Employee
It will display all result.

image 

SET ROWCOUNT 2
SELECT * FROM Employee

Now it will display only two records.

image

That’s It.
Enjoy Learning.

No comments:

Post a Comment