Error Deleting a Login

b2amol
Member Posts: 64
Hi,
I am getting error on deleting any login from NAV.
The following SQL Server error or errors occurred:
15138,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]The database principal owns a schema in the database, and cannot be dropped.
SQL:
{CALL [sp_revokedbaccess](?)}
Database owner is SA
Security Model is Standard
Thanks,
Amol
I am getting error on deleting any login from NAV.
The following SQL Server error or errors occurred:
15138,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]The database principal owns a schema in the database, and cannot be dropped.
SQL:
{CALL [sp_revokedbaccess](?)}
Database owner is SA
Security Model is Standard
Thanks,
Amol
0
Comments
-
You should previously delete Schema with the name of user from SQL server, then you could delete login.
Btw, I thought Schema creates only when Security set to Enhanced.Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com-1 -
Use SSMS and go to your database=>Security=>schemas.
In there search the user you want to delete.
If you are on SQL2008, you can position on menuitem "schemas" and hit F7 to have a list of the schema's and their owners. If you are on SQL2005 your probably have to check which schema's belong to the user you want to delete.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thank you for your reply.
My intention was to add a user, and i got this error. That made me believe that NAV is trying to drop orphaned users.
I already did clean up by dropping orphaned users in SQL, using SSMS.
However two SID's show up in my NAV users list. So as of now users can neither be added or deleted.
this is a test box, so i guess it is best to recover back from prod again.
Amol0 -
Use SSMS anyway, go to the Windows user table and delete its user from there.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi B2amol,
We recently faced this error in one of our recent implementations and we found out the login which was missing within SQL and re-created this login within SSMS. After adding this missing login, we were able to add / remove users as normal.
Probably not the cleanest of the solutions but it worked for us!!
Cheers,
Kishore0
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