Thursday, December 21, 2006

For some time now I have been having problems with "Connect To Server" window of Microsoft SQL Server Management Studio. The standard problem is that has problems remembering the password, or rather it has a habit of forgetting. The effect is that each time I run the MSSMS, there is a chance that my password will not be there even if I have checked the check box to remember it before. I'm currently running Windows 2003 Server, but I had exact the same problem on Windows XP.

Over a time I've got used to it and I no longer bother to check the "Remember Password" check box. Today however I have began to have a new suspicion.

Almost every time I try to log in to the server for the first time, I get a message that login or password was incorrect. I have always reentered my password thinking that I had made a typo. Some times it took me three times to get it right and that made me think.

Why is that window different? When I use the same password for other windows, my success/error rate is almost zero. Here I'm far from that. So I've investigated the issue.

The goal was simple: after entering a user name and password and getting a failed login attempt saying that the user name or password was incorrect, check if the message is right. Options were just to retry without changing anything or compare the entered text with what should be entered.

The first method was too easy :-). So I have decided to see what's in there. User name was a plain text so it was easy. And since it IS remembered, I have confirmed no error there. As for the password. I have used the Runtime Object Editor, to look under the hood. And guess what? Password was also correct!

Given the investigation I can say with certainty that there is a bug in the MS SMS! Such a simple function and it doesn't work!!! I have found one similar bug report. Not exactly the same but I think it is somehow connected. Imagine that. Big company, lots of money, lots of time, one small window and so many bugs!

kick it on DotNetKicks.com

Thursday, December 21, 2006 4:04:48 AM (Central European Standard Time, UTC+01:00)
I get the same exact problem and it annoys the hell out of me. Hopefully a someone will bark loud enough for them to fix the problem. I am running SQL 2k5, without the SP1 installed, not sure if your running the same or not, or if SP1 fixes it.
tony testa
Thursday, December 21, 2006 11:53:50 PM (Central European Standard Time, UTC+01:00)
The problem might be your sql server is stopped. So first attempt fails. Try changing service settings.
Nilesh Deshpande
Monday, December 25, 2006 2:15:01 AM (Central European Standard Time, UTC+01:00)
No, the server is running that's for sure. If it was not running it would be a different error message.
Monday, April 07, 2008 7:41:39 AM (Central European Standard Time, UTC+01:00)
I have the same problem, but it only happens from time to time. I'm using the SQL Server management stuido Express. Did anyone find a solution to this annoying problem?
Kenneth Johansen
Thursday, July 17, 2008 3:16:40 PM (Central European Standard Time, UTC+01:00)
Same problem here. Any idea if they plan to fix it? It's very frustrating when you have cryptic, hard to remember passwords.
Wednesday, September 10, 2008 5:13:35 PM (Central European Standard Time, UTC+01:00)
So, this has been a problem for over 3 years and they still haven't managed to fix it? How lame is that?!? I have never gotten the "Incorrect username or password", but it does "lose" the password quite often. The weird thing is, sometimes it remembers it, sometimes it doesn't. And this has happened on 2 different workstations connecting to 2 different SQL Servers on 2 completely different domains, so I can't believe that it's not a totally common experience.
Dimondwoof
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview