You could easily have found this using google.
select top 2 * from table
This was the original text which I responded to:
Hi I am new to .net i have to get two rows of data from sqlserver table and i have to add both rows how can i get rows from table . i dont need all table info
You COMPLETELY changed the question, and then voted my answer a 1.
EDIT #2 =========================
I hope you saw the original version of this because the last sentence still stands. It's really too bad the thought police have endorsed your action by deleting my original message.