Either there's something wrong with your SQL Server, or your connection to the server is extremely slow and it's taking a long time to fetch the data, or something is locking the table. Probably that last one. Start with
explain select * from details
.