![]() |
#9 |
Модератор
|
да, уверен
Цитата:
Вот тут
https://www.sql.ru/forum/1332703/kak...zvolnoy-sessii утверждают, что при выходе из хранимки свойство должно восстанавливаться. Т.е. не должна хранимка смочь что либо испортить в сессии. P.S. Надо будет контрольный пример сбацать и проверить X++: use tempdb go set nocount off go select count(*) from sys.objects go create procedure myProc as begin set nocount on; -- do something end go execute myProc go drop procedure myProc; go select count(*) from sys.objects go Цитата:
-----------
100 (1 row affected) ----------- 100 (1 row affected) Цитата:
If a SET statement runs in a stored procedure or trigger, the value of the SET option gets restored after the stored procedure or trigger returns control. Also, if you specify a SET statement in a dynamic SQL string that runs by using either sp_executesql or EXECUTE, the value of the SET option gets restored after control returns from the batch that you specified in the dynamic SQL string
на AX2012, при возможности проверю. T-SQL c NOCOUNT из X++ должен валиться P.S. подчеркнутое расходится с Цитата:
if you specify a SET statement in a dynamic SQL string that runs by using either sp_executesql or EXECUTE, the value of the SET option gets restored after control returns from the batch that you specified in the dynamic SQL string
__________________
-ТСЯ или -ТЬСЯ ? Последний раз редактировалось Vadik; 21.01.2021 в 23:22. |
|
|
За это сообщение автора поблагодарили: Logger (10). |
Теги |
ax2009, ax2012, ax2012r2, occ, sysclientsessions, ошибка, хранимые процедуры |
|
|