troubleshooting Question

Hibernate and mssql server 2005 db

Avatar of zolf
zolfFlag for United Arab Emirates asked on
Microsoft SQL ServerJavaJava EE
9 Comments1 Solution578 ViewsLast Modified:
Hello there,

Our application uses hibernate3 with MSSQL 2005 server platform. Hibernate configured to update DB structure on startup (hibernate.hbm2ddl.auto property to update). Since last week a problem raised that application starts very slow. Also if to check DB there are no all the necessary indexes which should be created by hibernate. If to set hibernate.hbm2ddl.auto to validate application starts fast but it is not a solution such as we often change data structure (application is in development). DBCC CHECKDB for the database gives no warnings. Also hibernate doesn't report any errors. If to restore previous database version of one week ago the problem disappears. But we have a lot of new data since that date entered and don't want to loose it. How to find the cause of so strange behaviour? What can be corrupted in the DB that doesn't allow to create all the indexes.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros