Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Cannot use text/ntext/image columns in the inserted and deleted tables
|
|||
|---|---|---|---|
|
#18+
Привет All Есть код типа: create trigger U_HIST_Accessor on Accessor for update as select * into #tt_deleted from deleted select * into #tt_inserted from inserted ..... Естественно он не работает, ошибка - см. сабж. Кто-нибудь знает, какого черта ОН (МССКУЭЛ) создает таблицы deleted и inserted с полями, типы которых не поддерживает? Можно как-то определить изменение поля типа text/ntext/image? Заранее спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.09.2001, 14:38 |
|
||
|
Cannot use text/ntext/image columns in the inserted and deleted tables
|
|||
|---|---|---|---|
|
#18+
У вас я так понимаю SQL7, а цитата из BOL для SQL2000, но все же объясняет ситуацию "In a DELETE, INSERT, or UPDATE trigger, SQL Server does not allow text, ntext, or image column references in the inserted and deleted tables if the compatibility level is equal to 70 .The text, ntext, and image values in the inserted and deleted tables cannot be accessed. To retrieve the new value in either an INSERT or UPDATE trigger, join the inserted table with the original update table. When the compatibility level is 65 or lower, null values are returned for inserted or deleted text, ntext, or image columns that allow null values; zero-length strings are returned if the columns are not nullable. If the compatibility level is 80 or higher, SQL Server allows the update of text, ntext, or image columns through the INSTEAD OF trigger on tables or views. " ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.09.2001, 14:54 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=32014621&tid=1825436]: |
0ms |
get settings: |
5ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
36ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 225ms |
| total: | 332ms |

| 0 / 0 |
