Problem with access SQL Server thru ODBC

erkasj
Member Posts: 4
I'm trying to access Nav 2009 tables (SQL server) thru ODBC, but I can't find any NAV tables only SQL Server DB objects. I'm using same UserId as in the Application with Windows auth.
Before upgrading Nav2009/SQL Server we used NAV 5 with Native DB and running C/ODBC was no problem.
Can any body out there please help me as our Nav partner cannot .
-Thanks
Before upgrading Nav2009/SQL Server we used NAV 5 with Native DB and running C/ODBC was no problem.
Can any body out there please help me as our Nav partner cannot .
-Thanks
0
Comments
-
You need to assign permissionsThere are no bugs - only undocumented features.0
-
To be more specific, make sure the userid that you are using to access the NAV database has permissions to read the database in SQL. Check the userid in SQL Management Studio. I did a very similar thing - we were using an ODBC connection to our NAV50 database, and then we upgraded to NAV2009. Using the same userid, I tried to connect to our new database - but couldn't see the NAV tables. I went into SQL Management Studio, brought up the properties for the userid and checked the "user mapping" tab. The new database was not checked. I checked the new database and gave it public membership and everything was OK.Ron0
-
Hi,
Ron thanks for your reply, I was hoping your solution would solve my
problem but,
when looking at Management Studio/ User mapping tab for this userid and Database
the "Public" was checked.
Is there any more permissions to be set in SQL?
(I think our NAV Partner should be able to solve this kind of problems.)
-Thanks
Anders0 -
The "Public" role only grants access to the database. It does not grant permissions to any of the databases objects (tables, etc.). You must grant either the user or assigned role the permissions. There are 3 main options:
1. Grant user DB_Owner role. This is NOT preferred, as it give the user complete unhindered access to the database. This tend to be the "cheap way out" that I see many take.
2. Add the user as a member of a built in role. This may work fine if a built in role meets your needs. However many of the built in roles may grant more permissions then desired.
3. (preferred). Create a new DB role. Grant desired permissions. Make user a role member.
EXAMPLE:Grant Select on [dbo].[Your Company$Your NAV Table] to yourrole Go
There are no bugs - only undocumented features.0 -
Maybe this could help you: http://dynamicsuser.net/blogs/stryk/archive/2010/02/16/extended-database-hardening-nav-sql.aspxJörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
bbrown.
Thanks for your support,
A new role created and I have ODBC running.
Jörg.
Thanks for the link reagrding NAV/SQL server Security.
How will I get the green checkmark before the Subject???
/Anders0
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