SQL2005 rights in NAV5.0

Pta
Member Posts: 25
We are using NAV 5.01 together wit SQL2005. The database has 3 different companies. On the SQL server we have a windows user that shall have select permissions to 8 different tables. SQL server uses simple recovery model. The windows login is present in Navision. The user will not connect to NAV but will read data directly from SQL. First I gave the user db_datareader then everything worked as it should. Later on I wanted to restrict read permissions to only the tables he was supposed to read from and nothing more. I therefore added a role for that user and added SELECT permission on the 8 tables. I have tested this in our test environment and everything seems to work. However, when I add the SELECT permissions in the dev database the role I created seems to lose it's granted select permissions and user are not able to get data. Below is the error message we get when user tries to read data.
SELECT permission denied on object 'companyname$G_L Account', database 'databasename', schema 'dbo'.
Any ideas?
SELECT permission denied on object 'companyname$G_L Account', database 'databasename', schema 'dbo'.
Any ideas?
0
Comments
-
do you have the same security model in both databases? standard or enhanced?0
-
We use standard security model in both dev and test environment.0
-
are you sure that you have this login in NAV? (maybe you had in test database only) If not, NAV removes any groups and users when it synchronizes permissions.0
-
Yes, I am totally sure that I have the login in NAV.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