I had a logs database with over 3 million rows. Apparently it was responding slow and hence I decided to truncate the tables.
I couldn't truncate the tables as sql management studio was crashing when I tried to delete foreign key constraints before truncating. Hence I DELETED the database and ran the script again to create the database and tables. To delete the database I just right-clicked on the database and hit Delete option.
Even after that, I see that the SELECT/INSERT operations are taking as long as it took before. So I went ahead looked for Ghost records, but couldn't find any. May be that's because I had already re-created the database.
Still I went ahead and forced the Ghost cleanup.
DBCC ForceGhostCleanup;
GO
I am yet not able to improve the performance. What can I do to resolve the issue?
Thank you.