code to integer and sql migration

Cindy101
Member Posts: 33
Hello,
I've run into an issue and am unsure how to solve it. I've migrated an upgraded database to sqlserver but I have a problem with the Customer."No." field. The ordering is way off, I'm sure this is a code[20] to varchar(20) issue but I don't know how to resolve it (I thought this conversion would happen automagically). I've made sure that the table contains only integer compatible values but how I don't know how to switch it to int?
The issue comes up because of some funky ordering - for example
Customer No.
1001
10001
10002
...
9001
90001
Thanks for any help you can provide!
I've run into an issue and am unsure how to solve it. I've migrated an upgraded database to sqlserver but I have a problem with the Customer."No." field. The ordering is way off, I'm sure this is a code[20] to varchar(20) issue but I don't know how to resolve it (I thought this conversion would happen automagically). I've made sure that the table contains only integer compatible values but how I don't know how to switch it to int?
The issue comes up because of some funky ordering - for example
Customer No.
1001
10001
10002
...
9001
90001
Thanks for any help you can provide!
0
Answers
-
You can put the field property "SQL Data Type" to variant. But this means that you should do it for ALL fields in which a customer no. can be put. And some of those fields can also contain vendor nos...
Better would be to rename the customer nos.
e.g.
C01000
C10000
C10001
...Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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