Cannot find the user '$ndo$shadow'

mcurrie
Member Posts: 39
I just did a technical upgrade from Nav 4.01 to 5.0. I also upgraded from SQL 2000 to a SQL 2005 db.
The db seems fine from the testing I've done as far as viewing\modifing data - doing regular user based transactions however when I attemp to import objects I get the following message:
15151,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server] Cannot find the user '$ndo$shadow', because it does not exist or you do not have permission.
SQL:
GRANT ALL ON "database"."dbo"."Tablename" TO [$ndo$shadow]
I've read numerous posts relating to $ndo$shadow and how to fix this issue in previous versions of SQL however this app role does not exist in SQL 2005.
Just wondering if anyone has run into this issue before.
Thanks.
The db seems fine from the testing I've done as far as viewing\modifing data - doing regular user based transactions however when I attemp to import objects I get the following message:
15151,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server] Cannot find the user '$ndo$shadow', because it does not exist or you do not have permission.
SQL:
GRANT ALL ON "database"."dbo"."Tablename" TO [$ndo$shadow]
I've read numerous posts relating to $ndo$shadow and how to fix this issue in previous versions of SQL however this app role does not exist in SQL 2005.
Just wondering if anyone has run into this issue before.
Thanks.
0
Comments
-
you need to synchronize security.
Also in file->database->alter->advance tab->security Model change it to standard.0 -
I am on the Standard security model already and I have tried doing a sync. When I do try the sync it only runs for a fraction of a second which makes me believe it is not actually doing anything.
Any suggestions?0 -
The ndo$shadow is an application role .
In SQL SMS looked at this location and see if you see $ndo4shadow role
Database->YourDatabaseName->Security->Roles->Application Roles.0 -
That app role does not exist and it will not allow me to create it. From what I have read it does not exist when running either SQL 2005 or a version of Nav higher then 4.03???0
-
This app role is still used in SQL Server 2005 when using the Standard security model.
When you upgraded from 4.01 your security model should have been set to Enhanced, since this is the model used in 4.0.
Did you then change it to Standard yourself?Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
No, it was Standard after the upgrade was complete. I never changed it.0
-
I don't know if there is a way to create the app role.
I suggest to do a navision backup .fbk.
Create a new database and restore the Navision backup .fbk.0 -
It sounds like that is the root of the problem.
Do you have many users in the system?
I am wondering if you could change the model to Enhanced and back again to Standard, to re-create the app role.Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
It is a test database so I'm the only user currently. I tried changing the the security model to enhanced but it seems to just hang. I tried this yesterday and let it run over night. When the I checked this morning the application was not responding so I had to kill it.
I'm going to try the backup\restore and see if that creates the app role.
Thanks for all the suggestions thus far. The restore could take a while so I will update when finished.
Matt0 -
The hanging is likely to be because it needs to be in single-user mode to change the security model, and you have the database opened by some other session.
I can confirm that creating a new database will create an app role, so the restore route should work for you. I was looking for a quicker way!
Good luck.Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Backup\restore worked.
Thanks guys!0 -
Great to hear.0
-
Thanks for following up, and good to hear you got it working
. I am curious though to hear exactly how you did the initial upgrade. Did you go straight from a 4.01/SQL2000 to 5.0/SQL2005, or did you first convert the database on SQL2000 and then migrate to SQL2005? There's all sorts of ways to migrate, and it would be useful to hear exactly what steps you took.
0 -
For the SQL portion I simply detached a database from SQL2000 copied it to the SQL2005 server and re-attached it. I've had the SQL2005 server up and running for a while now and have used other 4.01 databases on it so that wasn't an issue. However, I believe the first time I attempted this same exercise I had to update the trace flag on the sql2005 installation and I also had to do the extended stored procedures.
As for the technical upgrade from 4.01 to 5.0 I followed these instructions which I copied from a post made by David Singleton on another forum.- I create a backup of OBJECTS ONLY from your 4.00 database.
- Restore these objects into a new 5.00 database.
- Now export all table objects form this 5.00 database.
- Import all the 5.00 converted tables back into your 4.00 database.
- Close version 4 and open SQL Server Management Studio.
- Locate you 4.00 database, and open Table $ndo$dbproperty.
- Change databaseversionno from 60 to 80
- Now open your database in 5.00.
Hope this can help someone else. If anyone has any questions don't hesitate to PM me.
Thanks again0 -
Changing the databaseversionno should only be done if you are absolutely sure that it won't compromise steps necessary during the database upgrade.
That is sometimes possible but in general, should be avoided.
In this case I believe it was the reason for the missing app role - the necessary security objects are created during the database upgrade step, dependent on the security model.Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
mcurrie wrote:As for the technical upgrade from 4.01 to 5.0 I followed these instructions which I copied from a post made by David Singleton on another forum.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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