Navision table triggers not SQL Server table trigger.....?
gison
Member Posts: 128
Dear all,
I'm trying to find out how the Navision store its objects in SQL Server Database. Firstly, I cannot find Navsion table trigger in corresponding Database Table trigger, so I think probably Navision use different way to store its objects....then I found there are a log of table named as companyName+ some mysterious number.......
Is't the Navision objects store in this kind of tables...? Does anyone know the rule of table naming... :?
thanks for any idea.
I'm trying to find out how the Navision store its objects in SQL Server Database. Firstly, I cannot find Navsion table trigger in corresponding Database Table trigger, so I think probably Navision use different way to store its objects....then I found there are a log of table named as companyName+ some mysterious number.......
Is't the Navision objects store in this kind of tables...? Does anyone know the rule of table naming... :?
thanks for any idea.
0
Comments
-
AFAK the objects are stored as a BLOB in the object table.0
-
Hello !
1. Navision table structure and code (incl. triggers) is saved in a SQL table called "Object" (as I remember).
2. Tables with ComanyName-numbers are Navision index tables, saved in SQL.
Hope that help,0 -
NAV is not using SQL to run any application code. All is done on the client. The numbered tables are SIFT tables which are used for fast sum calculation. The number is ID of the table, second no. is ID of the Key. If you want to know more, I recommand to read some documentation (e.g. Application Designers Guide).0
-
thanks you two,
on the other hand, if I export table: Object then import to different database which have same company name and same object id.
This is mean all the objects be synchronized except data. am i right? :?
appreciate your idea.
0 -
gison wrote:thanks you two,
on the other hand, if I export table: Object then import to different database which have same company name and same object id.
This is mean all the objects be synchronized except data. am i right? :?
appreciate your idea.
Not exactly, and I recommand to NOT DO THIS. It will "synchronize" the object definitions, but it will not "redesign" existing table structures and definitions! And because you will have another NAV definitions of the tables and another physical table structure, you could have big problems. Just export the objects as FOB and import them as FOB through the NAV client.0 -
Hello Kine,
thanks your precious advice and explanation.
If back to the other question.
HalMdy said tables with ComanyName-numbers are Navision index tables,
These index tables.... is't like database index.... we better have but not if we don't have it, system still can work, or does these have anything special point.. :?
appreciate any idea.0 -
It is "you must have" if you want to have correct, consistent database. These tables are created by NAV and are maintained by SQL triggers on the tables. If they are not existing, the triggers will lead to errors and you will not be able to do anything. But, please, describe why you want to know all that. For me it seems that you want to "recover" something from some DB or you are playing some dangerous game and it is not good. Can you throw more light to this?0
-
Hello Kine,
I'm just trying to understand the structure between Navision and SQL server
firstly, i just detected the Navision table triggers are not really the database level's table trigger.... it's interesting......the Navision component seem to just have tables and some stored procedures put in the database.....
:?0 -
by the way, this is difference architecture with some other ERP system....they just put the table trigger on database level...0
-
You need to know that NAV is not build for SQL, it has own Native Navision Server which was developed together with the client in DOS times. Support for MS SQL server was added in version 2.01 and it was just the "second option" for the client. SQL is just the database backend for the NAV and all the logic is done in the NAV client. C/AL is interpreted language, it means that NAV client read the definition of the object and interpret the language commands. It is something like first versions of Basic interpreters.
And because Native DB support something called SIFT technology (Sum Index Fields technology - precalculated sums for groups of records), they needed to support this technology on the MS SQL. And it is solved with the "numbered" tables and table triggers updating them. This will change in NAV version 5.0SP1, where the indexed views will be introduced for that.0 -
thank you Kine,
sorry, please allow me back to previous question, because I'm confused again.
I checked the table: Object .... In the discussed before, the Navision save the objects in this table...with Blob type.... but when i checked the row in this table, the columns about Blob... like "Blob Reference", "Blob Size" are all null... so...what's happened the Navision objects? :? where were they saved?
sorry... for trouble you all again.0 -
BLOB reference is the field keping the object definition. If the fields are empty, may be that you are looking to some screwed DB. Are you able to connect to this DB through NAV client?0
-
The BLOB Reference field values are NULL for "Table Data" object types, where the Type field of the Object table is 0. For all other Type values there is a BLOB Reference value containing the object binary format.Dean McCrae - Senior Software Developer, NAV Server & Tools
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Hi Kine,
I was wrong....as dmccrae said, just table data has empty field.
:?
thanks all of you.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

