Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2005, 07:02 AM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
DTC fails to work with SQL Server after changing t titojermaine SQL Server 2005 0 July 24th, 2007 07:24 AM
login fails... yasminnnnn ASP.NET 2.0 Basics 6 December 12th, 2006 03:49 PM
Login Control fails on server PeterX ASP.NET 2.0 Basics 0 July 25th, 2006 10:53 AM
Sql Server Login Failed error a42 ASP.NET 1.0 and 1.1 Basics 3 December 14th, 2004 05:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.