AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 01.02.2008, 21:21   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axStart: How to convert a column in a table to a different type with the same name without losing data.
Источник: http://axstart.spaces.live.com/Blog/...C0A0!255.entry
==============


Scenario:
You have decided to change the type of a table column from Integer to string. But you want the field name to be the same. On customer side you also want to convert the date. So the data is not lost.
Solution:
Development side:
·        Rename the old field to DEL_fieldname and create the new field Fieldname.
·        Add a configuration key SysDeletedObject30 to the DEL_fieldname.
Customer side:
·        Turn configuration key SysDeletedObject30 on.
·        Install the new layer or XPO. And synchronise the database.
·        Convert the data from DEL_fieldname to fieldname. With a job.
·        Turn the configuration key SysDeletedObject30 of.
Mission accomplished.
The SysDeletedObject30 configuration key is also used for migration from AX 3.0 to 4.0
Before you start the migration this configuration key needs to be active. After completing the migration, this key can be turned off. The column is deleted from the DB. Of course this concept can also be used on table level.


Источник: http://axstart.spaces.live.com/Blog/...C0A0!255.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axStart: Change data on a data source on a Form Blog bot DAX Blogs 0 04.09.2008 15:05
axStart: How to use XSLT in AIF and what’s wrong with empty xml Nodes. Blog bot DAX Blogs 0 27.04.2008 18:07
axStart: Import 3.0 company data into 4.0 Blog bot DAX Blogs 0 31.01.2008 20:50
PatrickChua: Temporary table Blog bot DAX Blogs 0 28.10.2006 18:14
Fred Shen: Convert Axapta date type value to datetime type value in SQL Server Blog bot DAX Blogs 0 28.10.2006 16:40

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 02:05.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.