SQL Server error ... accessing the Sessions table

rnshh
Member Posts: 22
We've been struggling with variations of the same theme of error message. Generally, the message is:
The following SQL Server error(s) occurred while accessing the Sessions table:
229,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]The SELECT permission was denied on the object 'Session', database '<database name>',schema 'dbo'.
We're on Version NA 4.00 SP1 (4.0 SP3)
SQL Server 2005
Citrix ICA
We've been synching, but nothing works. The only solution is to set the users role to Super (Data) or Super.
Thanks for any pointers.
The following SQL Server error(s) occurred while accessing the Sessions table:
229,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]The SELECT permission was denied on the object 'Session', database '<database name>',schema 'dbo'.
We're on Version NA 4.00 SP1 (4.0 SP3)
SQL Server 2005
Citrix ICA
We've been synching, but nothing works. The only solution is to set the users role to Super (Data) or Super.
Thanks for any pointers.
Tim Lecander
ArcherPoint
ArcherPoint
0
Answers
-
I had this problem too. I solved it by adding select permissions for public on this view in NAV database. It seems that if you are using the Session table in Codeunit 1 for some purpose, you have no rights. After the CU1 is processed and the company is opened, all is ok.0
-
[Topic moved from Navision forum to SQL General forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
You could try to fix this by executing this little TSQL within Management Studio:
use [MyNAVdb] go grant select on "Session" 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 -
Sorry it took so long to post a reply.
We ended up adding db_owner for each user's database role membership.
Thanks!Tim Lecander
ArcherPoint0 -
That's not a correct solution. User should not have dbOwner rights.0
-
Wow wow :!: Do not give normal users the permissions to DB_Owner :!:
Thats fatal :!:
With using 4.03 and standard security model and you read in your source the session table (view), u must grant permissions to this view. All user use database role public. so give under Database -> Security -> Roles -> Database Roles -> Public -> Securables -> Add -> Specific Objects -> Views -> [dbo].Session -> Permission Select -> Grant. These are steps for SQL 2005.
Easier go to Database -> new querywindow -> grant select on "Session" to public
RegardsDo you make it right, it works too!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