We have a job which runs every morning in CruiseControl.net to import a datafile into a DB. Our problem seems to be that some nights the DB goes to sleep over night. When we
Could you schedule a query 30 minutes before your build process runs to "warm up" the server?
Also- is this database running on a server or desktop? If it's a desktop you might check the power management settings.