$ndo$shadow trouble

Toddy_Boy
Member Posts: 232
After using the SQL 2008 Copy Database wizard I now have a Copy of the Live database for testing/training etc which will be refreshed every night. I can gain access to the database no problem but when non db owners try to access it using Nav 2009 R2 they get an error
The application role does exist and has a password according to SSMS.
Security is Standard in the Live and Copy databases, I've synchronised the logons and users have permissions to both databases.
I've read about changing the security model to Enhanced and back to Standard as this will be a scheduled job I don't want to be running extra commands that could lock the job as can happen when changing the security model.
Any ideas why an exact copy of the database shouldn't act in the same way as the source database?
Steve
Cannot set application role '$ndo$shadow' because it does not exist or the password is incorrect
The application role does exist and has a password according to SSMS.
Security is Standard in the Live and Copy databases, I've synchronised the logons and users have permissions to both databases.
I've read about changing the security model to Enhanced and back to Standard as this will be a scheduled job I don't want to be running extra commands that could lock the job as can happen when changing the security model.
Any ideas why an exact copy of the database shouldn't act in the same way as the source database?
Steve
Life is for enjoying ... if you find yourself frowning you're doing something wrong
0
Comments
-
Windows or SQL logins?David Singleton0
-
Windows authentication
SteveLife is for enjoying ... if you find yourself frowning you're doing something wrong0 -
Hi,
I am doing the exact same thing, have you guys found any solution to this?
Synchronizing the logins doesn't work as it complains that a login (the owner of the db) already exists in the database...
Kind Regards,
EwaldKind Regards,
Ewald Venter0 -
No, sorryLife is for enjoying ... if you find yourself frowning you're doing something wrong0
-
Are you restoring to the same sql server instance?
If not, you may have a mismatch between your instance security users and your database security users.
Also, are you on the same Windows domain?David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Same domain different servers/instances.
It was running perfectly when the jobs were created to run on a Windows account, a month later suddenly started getting permission errors so the copy didn't happen and the client denies changing permissions for the login.
So recreated the jobs using a db login with the same password in both instances, on both servers it has the sysadmin role.
And it is set to copy the logins from source to destination server.Kind Regards,
Ewald Venter0 -
You can use the sp_change_users_login stored procedure from SQL server.
That did the trick for me...
To report the 'unmapped' users: exec sp_change_users_login 'Report'
Check the Microsoft Help page for more details.
Jan0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions