Unix Technical Forum

SQL 2000 -> SQL 2005 conversion sql authentication problem

This is a discussion on SQL 2000 -> SQL 2005 conversion sql authentication problem within the SQL Server forums, part of the Microsoft SQL Server category; --> I recently needed to upgrade a sql 2000 machine to 2005. Instead of upgrading the sql 2000 default instance, ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 08:27 PM
pb648174
 
Posts: n/a
Default SQL 2000 -> SQL 2005 conversion sql authentication problem

I recently needed to upgrade a sql 2000 machine to 2005. Instead of
upgrading the sql 2000 default instance, I installed sql 2005 as a
separate named instance so we could go back to sql 2000 if necessary.
The web server that connected to the new server didn't have anything
change on it except the database ip was changed to
machinename\instancename instead of just machinename. SQL
authentication was being used and the exact same userid/password was
created on sql 2005. I logged into the database server using the same
userid/pass to confirm it worked.

However, when using the app, it reported "Login failure for: username"
error and I confirmed 600 times over the next two hours that it was in
fact correctly typed in. The "State" in the sql server log indicated a
password mismatch, but again, it was correct and I verified it worked
using the sql 2005 management studio from the web server itself.
Finally I had the bright idea of making the password blank, figuring it
was getting mangled somewhere in the process...

That worked. So my question is, what is going on and how can I set a
normal password? There is no encryption of the connection string and
nothing changed in the web app between converting the machine from 2000
(worked fine) to 2005 (password mismatch).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 08:27 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL 2000 -> SQL 2005 conversion sql authentication problem

pb648174 (google@webpaul.net) writes:
> I recently needed to upgrade a sql 2000 machine to 2005. Instead of
> upgrading the sql 2000 default instance, I installed sql 2005 as a
> separate named instance so we could go back to sql 2000 if necessary.
> The web server that connected to the new server didn't have anything
> change on it except the database ip was changed to
> machinename\instancename instead of just machinename. SQL
> authentication was being used and the exact same userid/password was
> created on sql 2005. I logged into the database server using the same
> userid/pass to confirm it worked.
>
> However, when using the app, it reported "Login failure for: username"
> error and I confirmed 600 times over the next two hours that it was in
> fact correctly typed in. The "State" in the sql server log indicated a
> password mismatch, but again, it was correct and I verified it worked
> using the sql 2005 management studio from the web server itself.
> Finally I had the bright idea of making the password blank, figuring it
> was getting mangled somewhere in the process...
>
> That worked. So my question is, what is going on and how can I set a
> normal password? There is no encryption of the connection string and
> nothing changed in the web app between converting the machine from 2000
> (worked fine) to 2005 (password mismatch).


What about upper/lowercase? I seem to recall that in SQL 2000, the
password is case-insensitive if the system collation is case-insensitive,
whereas on SQL 2005 it's always case-sensitive.



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 08:28 PM
pb648174
 
Posts: n/a
Default Re: SQL 2000 -> SQL 2005 conversion sql authentication problem

No, the password was all lower case in both sql server and the
connection string. I deleted and re-added different users with
different names and passwords, painstakingly trying different things
over the course of a few hours.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 08:28 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL 2000 -> SQL 2005 conversion sql authentication problem

pb648174 (google@webpaul.net) writes:
> No, the password was all lower case in both sql server and the
> connection string. I deleted and re-added different users with
> different names and passwords, painstakingly trying different things
> over the course of a few hours.


And only lowercase letters? That is, no special characters or anything
else?

I'm sorry, I have no idea of what might be going on.



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com