Code datatype with SQLServer
Cindy101
Member Posts: 33
Hello,
I'm doing an upgrade on a 3.7 database, and then using the new 5.0 sp1 db on a SQLServer. I'm having an issue with one of the code datatypes - "Job Task"."Job Task No."
I understand how sql wants to sort the Code fields, but this field I need to be sorted the correct (accounting) way.
I found this:
http://wiki.dynamicsbook.com/index.php? ... NAV_vs_SQL
Which definitely explains what I want to do, but I don't know how to go about doing it. The field is all numeric in all companies, so I shouldn't run into any problems, once I know what I'm supposed to do
Thanks in advance.
I'm doing an upgrade on a 3.7 database, and then using the new 5.0 sp1 db on a SQLServer. I'm having an issue with one of the code datatypes - "Job Task"."Job Task No."
I understand how sql wants to sort the Code fields, but this field I need to be sorted the correct (accounting) way.
I found this:
http://wiki.dynamicsbook.com/index.php? ... NAV_vs_SQL
Which definitely explains what I want to do, but I don't know how to go about doing it. The field is all numeric in all companies, so I shouldn't run into any problems, once I know what I'm supposed to do
Thanks in advance.
0
Answers
-
Before doing this in the production DB, you should first do this in a test DB and test a lot!
Open the table in which there is a field you want to change.
Show the properties of the field. Property "SQL Data Type" defines how the Code-field is stored in the DB. Change it to integer or Biginteger and save the table. Saving can take a while because NAV has to change the datatype of the field in SQL.
Now you have to do that for ALL fields in which the field can be stored.
One remark :
if you need to do that for items but NOT for G/L Accounts, you can have problems : in table 37:"Sales Line", field "No." is used for items AND G/L accounts...Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Many thanks!
Luckily I still have a week before the final upgrade to test this out.
0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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