Error 229 - Permission denied

dulaman
Member Posts: 73
Hi
I am upgrading a Navision 3.70 database to Dynamics NAV 5.01SP.
My method is a bit rude but it works: first, I create a native backup of the original database (in a fbk file). Then, I create a new database in NAV 5, and from there I restore the old database.
Well, all seems to work fine: all functions are restored and the new db works in NAV 5 like a charm... except... I am the only one who can access to the database!!
The rest of the users receive this error: 229, "42000" [Microsoft][ODBC SQL Server Driver][SQL Server] The SELECT permission was denied on the object 'Permission', database 'test5' schema 'dbo'.
The only way I've found to grant access to the rest of users is giving them the "owner" status, which is, obviously, not what I want to do.
I am pretty sure that there is something very obvious that I am missing to do in SQL, but... what?? ](*,)
I am upgrading a Navision 3.70 database to Dynamics NAV 5.01SP.
My method is a bit rude but it works: first, I create a native backup of the original database (in a fbk file). Then, I create a new database in NAV 5, and from there I restore the old database.
Well, all seems to work fine: all functions are restored and the new db works in NAV 5 like a charm... except... I am the only one who can access to the database!!
The rest of the users receive this error: 229, "42000" [Microsoft][ODBC SQL Server Driver][SQL Server] The SELECT permission was denied on the object 'Permission', database 'test5' schema 'dbo'.
The only way I've found to grant access to the rest of users is giving them the "owner" status, which is, obviously, not what I want to do.
I am pretty sure that there is something very obvious that I am missing to do in SQL, but... what?? ](*,)
-- dulaman
"I don't want to believe. I want to know." (Carl Sagan)
"I don't want to believe. I want to know." (Carl Sagan)
0
Answers
-
Did you synchronize all users?0
-
mohana_cse06 wrote:Did you synchronize all users?
Yes of course, first thing I did after the restoration. NAV already asks if you want to do so, and I did it.-- dulaman
"I don't want to believe. I want to know." (Carl Sagan)0 -
Did you also try to excecute below query?use [Your_NAV_Database]
go
grant select on [Object] to public
go0 -
mohana_cse06 wrote:Did you also try to excecute below query?use [Your_NAV_Database]
go
grant select on [Object] to public
go
Aaand... it worked! Thank you very much! =D>
I was trying this:
use mydatabase
go
grant select on Permission to USER
go
And it was not working. I wonder why it works for all but not for one. In any case, I still wonder why I must grant permissions for this specific table after the restoration?
Anyway, thanks again mohana_cse06 !!-- dulaman
"I don't want to believe. I want to know." (Carl Sagan)0 -
Instead of using Enhanced security model and then synchronizing the users, it is easier (and better to use the standard Security Model).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