I have DB that was restored from SQL 2000 into an instance of 2005. With the different Login/User structure I had to create a login to connect to the DB through ODBC.
What I am looking to do now is set it up so that the old user credentials can be used to login to the new DB and get all the same permissions.
So in old 2000 DB user name is john and password is fortheloveofallthingsholypleaseletmein1.
If I create the Login john I get an error back stating that there is already an object named john. I am guessing that when it tries to make he user for the DB with the same name as the login that is being created it sees the current one and declines.
Maybe I have this wrong and the Login has nothing to do with connecting to the DB from ODBC, I just know that when I try to connect with john and fortheloveofallthingsholypleaseletmein1 I get back "Login filed for user 'john'" and the log shows state 5 (invalid userid). But when I created a login (johnlogin) for the server it created a user (johnlogin) for the DB that I was able to use to make a connection.
How do I make a login john and have it associate with user john that already has the permissions that are needed and not have to change the password so that it won't need to be changed on a lot of machines and in other apps that are using it?
Thanks for your help!