|
|
|
Recordset не видит колонки
|
|||
|---|---|---|---|
|
#18+
Выполняется такой код: strSQL="declare @max_id int SELECT @max_id = (select max(id) from "&ForumTable&") If (@max_id is NULL) BEGIN select @max_id = 1 select @max_id as maxid END Else BEGIN select @max_id as maxid END" set rs = db.execute(strSQL) LastId = rs.Fields("maxid") На последней строчке этого кода ошибка - "ADODB.Recordset (0x800A0CC1) Item cannot be found in the collection corresponding to the requested name or ordinal." Запускал скрипт в QueryAnalizer, все ок. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.10.2002, 14:43:00 |
|
||
|
Recordset не видит колонки
|
|||
|---|---|---|---|
|
#18+
strSQL="select isnull(max(id),0) from "&ForumTable set rs = db.execute(strSQL) LastId = rs.Fields(0) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.10.2002, 15:10:05 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=32057545&tid=1819671]: |
0ms |
get settings: |
5ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
41ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
25ms |
get tp. blocked users: |
1ms |
| others: | 183ms |
| total: | 276ms |

| 0 / 0 |
