|
|
|
kill session
|
|||
|---|---|---|---|
|
#18+
Подскажите пожайлуста, киким образом можно корректно прекратить выполнение запроса. А именно, необходимо реализовать функцию отмены выполнения длительного например selecta ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.06.2005, 11:27 |
|
||
|
kill session
|
|||
|---|---|---|---|
|
#18+
Смотришь с помощью команд onstat -g ses (или sql) нужный sesid, затем даешь команду onmode -z sesid. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.06.2005, 11:33 |
|
||
|
kill session
|
|||
|---|---|---|---|
|
#18+
Пардон, забыл уточнить, это нужно сделать программно ... Т.е в форме кнопкой Отмена ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.06.2005, 11:38 |
|
||
|
kill session
|
|||
|---|---|---|---|
|
#18+
Программно - вызываете функцию system (зависит от языка) с данной командой и не забыв установить окружение сервера :) при этом команда должна запускаться на самом сервере естественно. Как один из вариантов это можно наверное сделать через вызов хранимой процедуры самого информикса (пожалуй самый элегантный путь). ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.06.2005, 11:44 |
|
||
|
kill session
|
|||
|---|---|---|---|
|
#18+
LOTOSПардон, забыл уточнить, это нужно сделать программно ... Т.е в форме кнопкой Отмена sqlbreak() The sqlbreak() function sends the database server a request to interrupt processing of the current SQL request. You generally call this function to interrupt long queries. Syntax mint sqlbreak(); Usage The sqlbreak() function sends the interrupt request to the database server of the current connection. When the database server receives this request, it must determine if the SQL request is interruptible. Some types of database operations are not interruptible and others cannot be interrupted at certain points. You can interrupt the following SQL statements. SELECT OPEN ALTER INDEX UPDATE CREATE TABLE EXECUTE PROCEDURE DELETE CREATE INDEX INSERT ALTER TABLE If the SQL request can be interrupted, the database server takes the following actions: 1. Discontinues execution of the current SQL request 2. Sets SQLCODE (sqlca.sqlcode) to a negative value (-213) 3. Returns control to the application ..... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.06.2005, 11:52 |
|
||
|
|

start [/forum/topic.php?fid=44&msg=33126245&tid=1609001]: |
0ms |
get settings: |
10ms |
get forum list: |
19ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
76ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
62ms |
get tp. blocked users: |
2ms |
| others: | 237ms |
| total: | 432ms |

| 0 / 0 |
