Login error when trying to run a linked view
frgusto
Member Posts: 32
Hej!
I have a view which is linked object table in Navision.
The view read a table in a different database on the same server. The other database is not a Navision database.
When I try to run the linked object table in Navision i get error:
"Invalid combination of user id and password"
A sysadmin user can run the linked object table in Navision successfully, but all normal users get this error.
In Management studio users can run the view and also the table in the other database, but not in Navision.
Is there any way to get the object linked to a table in another database to work for normal users?
Nav 5.01
SQL-server 2005 sp3
Regards Fredrik
I have a view which is linked object table in Navision.
The view read a table in a different database on the same server. The other database is not a Navision database.
When I try to run the linked object table in Navision i get error:
"Invalid combination of user id and password"
A sysadmin user can run the linked object table in Navision successfully, but all normal users get this error.
In Management studio users can run the view and also the table in the other database, but not in Navision.
Is there any way to get the object linked to a table in another database to work for normal users?
Nav 5.01
SQL-server 2005 sp3
Regards Fredrik
0
Answers
-
check the permissions for the view(s) on the Non-Navision database for the group public or guest.
if not, set the permissions with grant. Also check, if the users that are connect in the Navision Database (SQL Login or Windows Login), has access to the Non-Navision database.Do you make it right, it works too!0 -
Do you make it right, it works too!0
-
Thanks for answering Garak.
I have installed the hotfix but to no avail, still the same error.
Did also recheck permissions according to your instructions, but nothing changes.
It's a bit odd the error is a login error, instead of an select not granted error .
Which user is it that may not login...?
Is there anyone who have created a linked table using a view reading a table in another database on the same server?
Are you then able to run the linked table with a user who is not sysadmin?
Regards Fredrik0 -
Have you tried just adding an ordinary user to the other database with appropriate permissions ?0
-
The problem could be combination of two things:
1) Permissions for logged user for different database, than NAV, where the user do not have permissions
2) Application roles model - where NAV is using application role to access the objects, and this role has no access to different database.0 -
A NAV user access the NAV database via a SQL Application role and therefore does not have access to any resources not granted to the role. In order to access another database (on the same SQL instance) from a linked table, you must take the following steps:
1. Activate the guest account on the other database and grant appropriate permisssionsUse [Other_DB_Name] Grant Connect to guest GO Grant select, update on dbo.your_table to guest GO
2. Grant permissions to public on views in NAVGrant Select, Update on [dbo].[CompanyName$Table For View] to public GO
There are no bugs - only undocumented features.0 -
bBrown, =D>
Thankyou all so very much!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
