Table Item in SQL Server

jasr23
Member Posts: 14
in SQL General
Does anyone know why the NAV 2015 table 27-Item is not appear in the SQL SERVER using Management Studio??? I am not able to find it....
0
Best Answer
-
I can think of few possible problems: Any operation which updates an Item will have effect in all companies. Just a few examples: Simple updating Global Dimension 1 or 2, or Blocked affects all companies. Costing must be the same for all the companies. Think about posting a Purchase Order in one of the companies. This updates Last Direct Cost which then will go into ledgers in other companies.
Having said that - I have very little experience with NAV multi-tenant environments. I may well be wrong as I am just extrapolating problems occurring in scenarios with many companies kept within one database.
Slawek
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-035
Answers
-
It does. But it is called [your company$Item]...Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Thanks Slawek_Guzek for responding, but I can ensure you this table is not here. I don't know if it could be hidden or something else.... Any more idea?0
-
It might be a permission issue on sql. Make sure you have at least a db_reader role on sql.0
-
Do you know where is typed the relation betweeen NAV and SQL SERVER tables? Which one in NAV corresponds to which one in SQL SERVER?0
-
Do you have a multi-tenant environment?Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Hello Slawek_Guzek!
Yes, it is a multi-tenant environment because only one instance of SQL works with multiple clients. About these databases and companies, in none of them can you access the table company_name$Item, or in a new query "SELECT * FROM ..." or open the table manually.... Any other suggestion?
Thanks so much for your interest.0 -
working with user SA with all permissions0
-
The [company name$table name] naming convention certainly applies to a single tenant environment, I haven't checked in multitenant environment; I guess it should be the same, but I cannot be sure.
If you look in NAV the database properties from DEV Env, you will see a field there called "Convert Identifiers" (File -> Database -> Alter, Integration tab). When NAV creates a table or a field all characters in table/field named which can be found in Convert Identifiers field are replaced with an underscore.
Default setup includes ."\/'%[] characters
So for exampe if your company is called My Company Ltd. then the Item table at the SQL level is called My Company Ltd_$Item
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-031 -
Thanks for your feedback Slawek, but these settings are standard. I looked for as you say with no results yet. On the other hand, I realise that this specific table Item has checked on its properties "Data per Company" as "No" and "TableData Reservation Entry=d". Could this configuration being causing this incident?
Thanks in advance.0 -
TableData Reservation Entry=d is just indirect permission for the code to delete entries from Reservation Entry table.
But the "Data per Company" = No settings on table Item is certainly weird. Are we talking here about standard table 27 Item? If someone invented this to share items among companies it is a very bad idea. This is indeed why you can't find Item table in your tenant databases - but this is the smallest problem you will have.Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-031 -
I knew the permission to delete entries, but I am really concerned because I have never checked the option "Data per company" before and I do not certainly know what can it cause. In fact, I found this settings prepared for an installation that is working for few years ago. Yes, it is the table 27-Item with some added fields, but the standard one in the end. But, what do you want to say with "this is the smallest problem you will have"? I am afraid.0
-
I can think of few possible problems: Any operation which updates an Item will have effect in all companies. Just a few examples: Simple updating Global Dimension 1 or 2, or Blocked affects all companies. Costing must be the same for all the companies. Think about posting a Purchase Order in one of the companies. This updates Last Direct Cost which then will go into ledgers in other companies.
Having said that - I have very little experience with NAV multi-tenant environments. I may well be wrong as I am just extrapolating problems occurring in scenarios with many companies kept within one database.
Slawek
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-035 -
Thanks so much for your comments and interest Slawek! I will try to save this situation restoring the value "Data per company" as Yes. Thanks for your help and feedback!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