The topic describes the DF018 T-SQL code analysis rule.
DEPRECATED
The SET ROWCOUNT option is deprecated.
It is not recommended to use the SET ROWCOUNT statement to restrict the number of rows. Use the TOP clause instead.
SET ROWCOUNT 10
SELECT * FROM dbo.Customers
SELECT TOP(10) * FROM dbo.Customers