Option string when querrying from a SQL Server Navision DB

Mehdi.Chahed
Member Posts: 14
Hi,
In order to make several Data Exports & Publication, I planned to use SQL Views, DTS & Planned jobs on SQL Server.
The principle is OK!
The problem comes from Option string fields: when exported (or querried) they are shown as integer. For end users, the information is not meeningfull ](*,)
DTS could be used to solve the problem but it's not an intelligent way [-X
Clearly I need a hand.
In order to make several Data Exports & Publication, I planned to use SQL Views, DTS & Planned jobs on SQL Server.
The principle is OK!
The problem comes from Option string fields: when exported (or querried) they are shown as integer. For end users, the information is not meeningfull ](*,)
DTS could be used to solve the problem but it's not an intelligent way [-X
Clearly I need a hand.
0
Comments
-
I think that there are four ways:
1) In Navision table you add new text column (field) and fill it with option text (in OnValidate or somewhere to keep it updated) - keep in mind the multilanguage (if you switch language you will have another text)
2) In DTS change it to the text
3) In presentation layer (on the website) have function which will translate the number into the option string...
4) use C/Front to read the values...0 -
I agree for all slutions you proposed.
In fact, I've allready tried 3 of them (not CFRONT). But I stil think that it's not the best way to procced: as I'm dealing with a Navision Retail DB of 90Gbites, I must think twice before adding any field especially when it has to be filled even by a DTS Task.
Somewhere on the SQL Server DB, a ghost table is there. Hidden by SP3a :evil: - Stupid thoughts 8-[
Anyway, the best solution is to create/use separate Tables (Field Id - Field Value - Text equivalency), join them when proceeding...
\:D/ That's the right way !
But I still think that this table exist0 -
This table does not exist, the text equivalent of the option is stored in the binary object...0
-
The text values of an option field are stored in a table property. Maybe you can access the table property somewhere in the object table, but I have no clue how to do that. Wouldn't recommend messing around with it either.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