sketchy929
asked on
Microsoft SQL Server 2005 DSN
I have attached my old database from our old MS SQL 2000 Server, and moved it to my SQL 2005 server.
I am having issues with logging in with one of my user accounts via Microsoft SQL Server DSN Configuration.
I get a message
Connection failed:
SQLState: '28000'
SQL Server Error : 18456
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'phone006'
I can connect with my sa account but not this user account.
I am having issues with logging in with one of my user accounts via Microsoft SQL Server DSN Configuration.
I get a message
Connection failed:
SQLState: '28000'
SQL Server Error : 18456
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'phone006'
I can connect with my sa account but not this user account.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If that Username is in "Domain\User"-format the appliction tried to establish the connection using integrated security. If this is what you inteded, you should check if that user has been granted permission to connect to the SQL-Server-Database.
I am assuming that phone006 is a SQL account.
If the servers are both on the same domain, the SID (security identifier) of the login will not have changed. Since the permissions are stored in the database, this is unlikely to be the case. HOWEVER, it is possible that the user account has not been granted permission to log on to the server - this would need to be checked.
If the servers are both on the same domain, the SID (security identifier) of the login will not have changed. Since the permissions are stored in the database, this is unlikely to be the case. HOWEVER, it is possible that the user account has not been granted permission to log on to the server - this would need to be checked.
Please check with the same and let me know if not happening.
sketchy929 ,
Please run this statement to check if there are any orphan users in you database -> sp_change_users_login 'Report' <-
Return the values to EE
Best Regards,
Paulo Condeça
Please run this statement to check if there are any orphan users in you database -> sp_change_users_login 'Report' <-
Return the values to EE
Best Regards,
Paulo Condeça
The link Nightman passed you I look on as something you want to use when you have very large numbers of users to transfer. The steps I've outlined work well when all you want to do is fix a couple of users, and it is a procedure that has worked well since version 6.0, so I expect it to work in 2005 as well.