I came around some weird thing in MS SQL server. I have two tables in my Database : "LogAnalyzer"
1> LogData
2> TestLogData
LogData contains around 9200192 rows and testLogdata around 1000 rows.
When I tried inserting a row in LogData it was taking like 10 minutes and still not inserting it .. It was just showing Executing Query
When I tried inserting a row in testLogData it did immediately.
Even when I connected the database through Java code it was behaving the same and I have properly closed the connection (I think)...
All worked fine after restarting the SQL server .. I dont know why this happened. As it was working all fine till now.
Please can anyone suggest the causes for this. I do not think its the size of the table because it worked fine after restart. (Query inserted immediately).
sys.dm_os_waiting_tasks