Login in navision fails: The SELECT permission was denied...
AndreasD
Member Posts: 34
Hello,
I have SQLserver2005 with Navision 4.0SP3.
When I try to log in with a user (who does not have dbo-rights) , I get the following Message:
The following SQL Server error(s) occurred while accessing the Object table:
229,"42000",[Microsoft}[ODBC SQL Server Driver][SQL Server] The SELECT permission was denied on the object 'Object', 'database datbase_name', schema 'dbo'.
OK
What can I do in order to successfully log in with that user without giving that user dbo-rights?
What I did so far: He is in public,
in the view dbo.session for permission select he has "Grant" and "With grant".
Thank you
Andreas
I have SQLserver2005 with Navision 4.0SP3.
When I try to log in with a user (who does not have dbo-rights) , I get the following Message:
The following SQL Server error(s) occurred while accessing the Object table:
229,"42000",[Microsoft}[ODBC SQL Server Driver][SQL Server] The SELECT permission was denied on the object 'Object', 'database datbase_name', schema 'dbo'.
OK
What can I do in order to successfully log in with that user without giving that user dbo-rights?
What I did so far: He is in public,
in the view dbo.session for permission select he has "Grant" and "With grant".
Thank you
Andreas
Andreas
0
Comments
-
Have you added the user to database logins / windows longins?
Synchronized the security?
Take a look at the installation guide. I think there's also a SQL Implementation pdf on the product cd. You'll find pretty much everything you need to know about NAV security.0 -
To use SQL 2005, you need to have the -T4616 startup parameter on your SQL Server.
Also, if you haven't already added them, the extended xp_ndo stored procedures need to be added to the server.
Not sure but I think the error I had was solved by the first idea - can't recall if it was exactly what you have described though.
Hope this helps.
Rob.0 -
Sounds more like that you are using enhanced security system and didn't synchronize.
Or you synchronize the accounts or you change the security system to standard.
If you don't need the permissions pushed to SQL (needed if the users need to access the DB with other tools), I would recommend using the standard security system.
[Topic moved from 'NAV/Navision' forum to 'SQL General' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi!
First try to "synchronize" your NAV logins. If the error still occurs, then you could try this TSQL in SSMS:use [Your_NAV_Database] go grant select on [Object] to public go
Does this help?Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
I had the same problem and this really worked.
But i want to understand better.
Can you help me to learn about the View "Session" because that was my object with this problem?0 -
Well, to be frank, the reason is that this "Enhanced" Security Model really sucks big time ](*,)
It's very buggy, often some permissions get lost ...
Missing SELECR rights on the "Session" view is abug of older NAV 5.x versions ...Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
