Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
olibara
Yak Posting Veteran
94 Posts |
Posted - 2010-08-24 : 16:40:51
|
HelloI'm fighting since two days to try to set up User ID and login to an sql server DatabaseAfter many tricky attempts I winSee this topichttp://www.sqlteam.com/forums/topic.asp?TOPIC_ID=149144But now a make a new restore of my production DB and I've lost all the rightsIf I delete that restored DB and restore my local DB I get the rights backI've tryed all the ways to grant pertinent rights to the restored production DB without success Rights on Sql server DB is a real mistery !!So I thing that the simple way will be to script rights from the accessible DB and try to apply them on the recalcitrant DBIs that possible ?Thank for your help |
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2010-08-24 : 17:46:09
|
Most likely you have orphaned logins. Hit google (or your favourite search engine) and search on that term, there's lots and lots written and the fix is trivial.--Gail ShawSQL Server MVP |
 |
|
olibara
Yak Posting Veteran
94 Posts |
Posted - 2010-08-24 : 17:46:34
|
One more tipIf I open MNG studio using Windows Authentication I can open and browse the DB I can also see the user 'zitouch" with db_owner rightIf I open MNG studio using SQL Autentication and zitouch Login I can NOT open the DBThanks for any help |
 |
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2010-08-24 : 18:36:54
|
You almost certainly have an orphaned login. Common when restoring a DB on a different instance. Hit google (or your favourite search engine) and search on that term, there's lots and lots written and the fix is trivial.--Gail ShawSQL Server MVP |
 |
|
olibara
Yak Posting Veteran
94 Posts |
Posted - 2010-08-25 : 01:21:05
|
Thank youI've found the solution herehttp://www.fileformat.info/tip/microsoft/sql_orphan_user.htm |
 |
|
|
|
|