|
|
|
Execute a stored procedure as a native method of a Connection object
|
|||
|---|---|---|---|
|
#18+
Кто-нибудь пользовался этим? To execute a stored procedure, issue a statement where the stored procedure name is used as if it were a method on the Connection object, followed by any parameters. ADO will make a "best guess" of parameter types. For example: Dim cnn As New ADODB.Connection ... 'Your stored procedure name and any parameters. cnn.sp_yourStoredProcedureName "parameter" Это я взял из Microsoft ActiveX Data Objects 2.5 help (ADO210.CHM) Имеется SQL stored procedure Код: plaintext 1. 2. 3. 4. Код: plaintext OLE IDispatch exception code 0 from ADODB.Connection: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.11.2005, 02:11:24 |
|
||
|
Execute a stored procedure as a native method of a Connection object
|
|||
|---|---|---|---|
|
#18+
я конечно не большой знаток ADO, но попробуйте использовать объект ADODB.Command со свойствами CommandType=adCmdStoredProc (adCmdStoredProc= 4) и коллекцию ADODB.Command.Parameters при создании параметров нужного типа (типа данных,in-out и пр.) для последующей передачи в SP. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.11.2005, 09:19:39 |
|
||
|
|

start [/forum/topic.php?fid=41&fpage=291&tid=1593015]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
60ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
52ms |
get tp. blocked users: |
2ms |
| others: | 249ms |
| total: | 410ms |

| 0 / 0 |
