Rename Tables

Kappe
Member Posts: 64
Hello
Is there a way to rename a table within code in a codeunit?
I want to move data from one table to another and then change the name of the new tables to the old names. But I know that I have to change before the name of the old tables.
Is there a way to solve this within a codeunit?
Regards
Kappe
Is there a way to rename a table within code in a codeunit?
I want to move data from one table to another and then change the name of the new tables to the old names. But I know that I have to change before the name of the old tables.
Is there a way to solve this within a codeunit?
Regards
Kappe
___________________________________________
Kappe
Kappe
0
Comments
-
Yes, it's possible. Have a look at the Upgrade Toolkit, to see how it's done.Daniel Zimmermann0
-
You have to access the table 2000000001 "Object"
Object.GET(Object.Type::Table,'',Table::MyTable); Object.validate(Name,'MyNewtable'); Object.MODIFY;
but do not change any names of standard objects.Kai Kowalewski0 -
Hello
Thank you for the answers - it works.
There are no standard objects on my list. We want to move self made objects to another range.
Regards
Christian___________________________________________
Kappe0
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