SQL Server error 4060 - Login fails
I have a Windows DLL that writes to a SQL Server database to log application data on average every minute or so. It runs fine apart from two or three times a day the following error occurs:
Description = Cannot open database requested in login ''. Login fails.
Native Error = 4060
Number = 0x80004005
Source = Microsoft OLE DB Provider for SQL Server
SQLState = 21285640
When loaded into a hex editor, the single quotes contain a single ASCII 0x01 (SOH)!
The connection string I use is as follows:
Provider=sqloledb;Data Source=OLDA;Initial Catalog=(local);Integrated Security=SSPI
Does anyone have any ideas what is going on?
Any help much appreciated.
|