sql dönen kayıt sayısını sınırlamak

Declare @RowCount int


IF @RowCount > 0
Set ROWCOUNT @RowCount

search this blog (most likely not here)