Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"