i’ve a serious Problem after upgrading my Navision-App from 3.6 to 4.02. The Database ist SQL-Server driven.
After the upgrade, the Win-logons won’t work anymore. (You have nor permission to read the table obejct.) for testing purposes, i’ve granted the user dbo rights; sadly with no success…
deleting and re-creating the user doesnt success.
the only way to logon to hthe database at this time are databse-logins…
Hmmm … I’m not sure if that’s a User permission problem … your Database Logins work? If it’s a permission problem, then “dbo” won’t do the job as this permission is “overrruled” by the “Application Role” NAV will use when loggin on … “sysadmin” should do it, but for sure you don’t want to have all users being “sysadmin” …
If you are getting this permission error it means the user you are logging in with is being authenticated but does not have permission to read the Object table.Are you using windows groups or just windows user accounts? There are changes in this area for 4.X.
The xp_ndo_enumusergroups proc is used by 4.X and xp_ndo_enumusersids is used by 3.70 and all prior versions (it is not a SQL2005 and SQL2000 dependency). If you host databases on the same server for 4.X and prior versions you need both procs; if only 4.X you only need xp_ndo_enumusergroups.
(BTW If a database or windows login is mapped to db_owner (dbo) in the database, then an application role is not used and the dbo rights take effect).
@ stryk: unforunatly im not able to use the link you posted. could you give plaese a extract of the >>article?
I’m sorry, that’s a confidential article from the Partner Source, it’s not allowed to publish it. If still reuired, your MBS partner should provide it.
The xp_ndo_enumusergroups proc is used by 4.X and xp_ndo_enumusersids is used by 3.70 and >>all prior versions (it is not a SQL2005 and SQL2000 dependency).
Yes, of course! [:$] Just mixed up things … as my current 4.00 project is on 2005 … thanks!
I think with the error you are getting “you do not have permission…” shows that the extended stored procedures are in fact installed correctly. I would suggest the following.
Logon on using one of the Database Logins, make sure that the database login has sysadmin privelages on SQL.
Remove the windows login you are having problems with in the windows logins list and then add them again. If it is added to the list then you know your current database login is working and has the correct permissions (so far so good).
Make sure you have given the windows login you are adding the correct roles (very important this one [:D]), or if you are using Active directory make sure the AD user is also in the windows logins list (and confirm that the windows login user also belongs to the active directory login via Active Directory) - you will also have to give the active directory roles.
Then you can either “synchronise all” or just select the windows login name in the list and tools → security → synchronise single…