Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 login error
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

210 Posts

Posted - 09/07/2006 :  18:50:10  Show Profile
I have backed up a database from one development environment to another development environment.

I have already corrected the orphaned user problem that occurs when backing up a database from one server to another.

I am trying to set the database access permissions in the login properties.

when I select permit for the database and check 'public' and 'db_owner' and click ok, I get the following error message:

Error 21002: [SQL-DMO]User 'login_name' already exists.

My application successfully connects to the database using the login name. I'm confused why the login properties are not checked selected accurately?

For the section "Specify which databases can be accessed by this login" under the login properties there isn't a check by the database?

Nor, is there a check under the Database Roles for 'db_owner' for the database.

When I try and make those selections and click ok, is when I get the above error message.

Not sure what is happening.

Can anyone help?

Posting Yak Master

210 Posts

Posted - 09/07/2006 :  23:46:05  Show Profile
Please disregard...I just figured out the problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000