sp_dbcmptlevel @dbname = 'MyDatabaseName'
If it shows compatibility level less than 80, then you should either update Compatibility level to be 80sp_dbcmptlevel @dbname = 'MyDatabaseName', @new_cmptlevel = 80
or useSET ROWCOUNT { number | @number_var }in order to limit the number of records returned.