|
|
|
Проблемма с @@rowcount
|
|||
|---|---|---|---|
|
#18+
Здравствуйте! Помогите пожалуйста. Есть SQL2000+SP2 на NT4 В тригере на Insert,Update определяется количество обработанных записей с помощью @@rowcount: Create triger ....... AS set nocount on declare @iCount int set @iCount=@@rowcount . . . @@rowcount возвращает 0 (ноль) строк. На других таблицах таойже тригер отрабатывает без проблем ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2002, 08:54:41 |
|
||
|
Проблемма с @@rowcount
|
|||
|---|---|---|---|
|
#18+
Все правильно. Tы командой SET .... сбрасываешь @@rowcount Выполни например 2 батча: set nocount off select 1 declare @iCount int select @iCount=@@rowcount select @iCount select 1 set nocount off declare @iCount int select @iCount=@@rowcount select @iCount ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2002, 09:14:09 |
|
||
|
Проблемма с @@rowcount
|
|||
|---|---|---|---|
|
#18+
Все правильно. Tы командой SET .... сбрасываешь @@rowcount Выполни например 2 батча: set nocount off select 1 declare @iCount int select @iCount=@@rowcount select @iCount select 1 set nocount off declare @iCount int select @iCount=@@rowcount select @iCount Решение: declare @iCount int set @iCount=@@rowcount set nocount on ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.06.2002, 09:14:50 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=32032002&tid=1822462]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
186ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
| others: | 223ms |
| total: | 491ms |

| 0 / 0 |
