ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel ADO SQL StoredProc (https://www.excelbanter.com/excel-programming/300654-excel-ado-sql-storedproc.html)

JW[_4_]

Excel ADO SQL StoredProc
 
I have no problems running other Procs or SQL statements.
It makes the connection, it pauses for a few seconds,
definitely running the Procedure. Then Excel fails.
I see this message in the app event viewer.
<< Faulting application excel.exe, version 10.0.6501.0,
faulting module msado15.dll, version 2.70.7713.0, fault
address 0x0002ddd6.
The code errors at the execute statement

objConn.Execute ("EXECUTE StoredProc"), rsData

I tried both execute styles.
<Type Name is invalid on this 2nd style.
objConn.StoredProc , rsData

any advice ? Jeff

keepITcool

Excel ADO SQL StoredProc
 
set rsData = objConnect.Execute( _
"StoredProc",,adCmdStoredProc)

else have a look he
http://www.devguru.com/Technologies/...n_execute.html


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"JW" wrote:

I have no problems running other Procs or SQL statements.
It makes the connection, it pauses for a few seconds,
definitely running the Procedure. Then Excel fails.
I see this message in the app event viewer.
<< Faulting application excel.exe, version 10.0.6501.0,
faulting module msado15.dll, version 2.70.7713.0, fault
address 0x0002ddd6.
The code errors at the execute statement

objConn.Execute ("EXECUTE StoredProc"), rsData

I tried both execute styles.
<Type Name is invalid on this 2nd style.
objConn.StoredProc , rsData

any advice ? Jeff




All times are GMT +1. The time now is 12:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com