Hello
NAV 4.1, SQL Server 2005
I have created a SQL Server view that reads data from a different database. I then created a NAV table and connected it to the view using the "LinkedObject" property (I also set the "LinkedInTransaction" Property to "No").
Running the NAV table will only work if the user running the NAV table has the dbo_owner role. I can't give my users this role - is there a way around this:
Hardcode the sa password somewhere into a codeunit/form?
Do something with Application Roles?
Many Thanks
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Hello bbrown. I took the steps that you suggested. Unfortunately, the user running NAV still needs the dbo role in the NAV database in order to be able to run the NAV table. This is what I did:
1 - Created a new SQL server user with the dbo role in the remote database.
2 - Connected to the remote SQL Server using the security context in used in step 1.
3 - Enabled the guest account on the remote database
Any ideas?. Thanks very much.
All doable of course, but never as simple as it first seems.
Thanks.
Actually the issue I have is more that the 3.70 server, has Database users, and for historical reasons I can't create them as Windows users. But in the end the problem is similar so the solution will be also. And to be honest, the 2009 DB is still a test db, so the users are DBO there till I fix it.
I have tried that. I gave myself the dbo Role in the sister database but I still cant run the table in NAV that connects to the table in the sister database. All is well if I give myself the dbo role in the NAV database though.
Any ideas? Thanks