We have a Windows front-end application that uses an SQL database as a back end. The application has an update function that saves the user’s changes to the database and refreshes the display from the database. This function has always been fairly slow, sometimes taking a minute or two, but suddenly it has started taking an abnormally long time, sometimes 20 or 30 minutes or more.
The initial save (write) part of the function seems take only a short time, and it is the subsequent refresh (read) part that seems to take much longer. The update speed has always been slightly affected by the size of the database, which has been growing slowly and steadily, but the sudden extreme slowness of the update function seems to be something else. We have tried restarting the server, running a chkdsk /f, checking for stuck processes, etc., but everything seems normal.
Is there something in SQL Server Management Studio 2005 similar to the Repair and Compact function in MS Access that might help?