A small way of knowledge sharing!

About me

Live Chat with me

Knowledge Sharing


Hi Friends, I am here to share the knowledge of past, present and future technologies, news related topics and some programming related posts. These posts will help you in coding as well to come out of your if you are in programming field. You can ask the question or you can start a discussion here.

Main aim to start this blog is to share our knowledge through the web and let the other people know what actually happening around us. You can add the data here and it will be published to all people.



Get variable N-row count in SQL or select N-row count from table

Hi Viewers..!,

These are the commands used to get the desired n-row count from table in SQL, Here you will get count from table of 10 records!. Declare a variable and set it value as like as you want here.

SET ROWCOUNT 10
SELECT *
FROM dbo.Orders
WHERE EmployeeID = 5
ORDER BY OrderDate
SET ROWCOUNT 0

No comments:

Powered By Blogger