|
|
|
Результат работы процедуры
|
|||
|---|---|---|---|
|
#18+
Есть .adp проект, в составе которого процедура "test" с одним параметром на выходе: "@res". Существует возможность получить результат работы этой процедуры используя конструкцию docmd.runsql("execute test @res out")? Подскажите пожалуйста. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.03.2004, 10:10 |
|
||
|
Результат работы процедуры
|
|||
|---|---|---|---|
|
#18+
Нет. А чем ADODB.Command не устраивает? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.03.2004, 10:20 |
|
||
|
Результат работы процедуры
|
|||
|---|---|---|---|
|
#18+
Сравни: Dim myConnection As ADODB.Connection Dim myCommand As ADODB.Command Dim workParam As ADODB.Parameter Set myConnection = New ADODB.Connection myConnection = CurrentProject.Connection Set myCommand = New ADODB.Command Set workParam = New ADODB.Parameter Set myCommand.ActiveConnection = CurrentProject.Connection myCommand.CommandType = adCmdStoredProc myCommand.CommandText = "test" myCommand.Parameters.Append myCommand.CreateParameter("@res", adInteger, adParamOutput, 2) myCommand.Execute результат: myCommand.Parameters("@res") И docmd.runsql("execute test @res out") если б еще можно было этот самый @res достать! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.03.2004, 10:34 |
|
||
|
Результат работы процедуры
|
|||
|---|---|---|---|
|
#18+
Несколько строк лишних зацепилось, но разница все равно заметна. Особенно когда параметров у процедуры больше... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.03.2004, 10:40 |
|
||
|
|

start [/forum/topic.php?fid=45&gotonew=1&tid=1676330]: |
0ms |
get settings: |
6ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
356ms |
get topic data: |
8ms |
get first new msg: |
4ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
| others: | 198ms |
| total: | 629ms |

| 0 / 0 |
