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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 04.03.2009, 15:24   #4  
Eldar9x is offline
Eldar9x
MCTS
Аватар для Eldar9x
Oracle
MCBMSS
 
1,064 / 166 (8) ++++++
Регистрация: 29.09.2006
Адрес: Казань
Вот кстати, подробно:
Цитата:
The SelectForUpdate Method

Calling selectForUpdate(true) on a record buffer replaces the use of the forupdate keyword in a select statement. The following piece of X++ code

custTable.selectForUpdate(true);
select custTable where custTable.AccountNum == '4000';




is equal in behavior to this code.

[View full width]
select forupdate custTable where custTable
.AccountNum == '4000';




Depending on the concurrency model settings on the table, a NOLOCK or UPDLOCK hint is added to the SELECT statement parsed to SQL Server 2000.

Tip

If you use the Query framework instead of select statements to retrieve records, it is also possible to retrieve these records as if a forupdate keyword had been used by calling update(true) on the QueryBuildDataSource object.
http://doc.qiuhao.com/0735622574/ch12lev1sec7.html
За это сообщение автора поблагодарили: mazzy (5).
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dianne Siebold: Rec Fields Required in AIF Partial Update Blog bot DAX Blogs 0 20.01.2009 09:05
DeniZone: Setting Cross-reference update in a Schedueld task Blog bot DAX Blogs 0 12.12.2008 13:05
epblog: How to update Data Set from User Control? Blog bot DAX Blogs 0 21.06.2008 13:05
Dianne Siebold: Update on the Dynamics AX SDK Team kashperuk DAX Blogs 1 16.10.2007 08:23

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 19:35.