We have a table in a database that has 35 rows, according to
exec sp_spaceused Department.
I am able to run
SELECT TOP 1 * FROM Department,
and get a result, but when I run
SELECT COUNT(*) FROM Department,
it runs longer than 2 minutes (I then cancelled it and did not wait for a result, since I expect this to be a simple and fast query).
What could the reason for this be? Do you have any suggestions?