Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ADO recordset problem with stored procedure

Object closed error!

I just figured out (again!) why I get this error while trying open/use
an ADO recordset from a stored procedure (acCmdStoredProc), while using
commandText worked just fine.

"SET NOCOUNT ON"

Apparently the "(xxxx row(s) affected)" msg output by SQL Server jacks
up the recordset object.

adding "SET NOCOUNT ON" at the top of your stored procedure will fix
this issue.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default ADO recordset problem with stored procedure

Thank you for this tip. I'm sure I will end up using this information, probably sooner rather than later.

Sincerely,
--
RMC,CPA


wrote in message ups.com...
Object closed error!

I just figured out (again!) why I get this error while trying open/use
an ADO recordset from a stored procedure (acCmdStoredProc), while using
commandText worked just fine.

"SET NOCOUNT ON"

Apparently the "(xxxx row(s) affected)" msg output by SQL Server jacks
up the recordset object.

adding "SET NOCOUNT ON" at the top of your stored procedure will fix
this issue.


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing an array or recordset to a stored procedure Paul Robinson Excel Programming 1 December 2nd 04 05:15 AM
Passing an array or recordset to a stored procedure Robin Hammond[_2_] Excel Programming 1 December 2nd 04 05:15 AM
Passing an array or recordset to a stored procedure Jamie Collins Excel Programming 1 December 2nd 04 05:15 AM
execute stored procedure Mark Goldin Excel Programming 3 April 7th 04 03:03 PM
Run a stored procedure in Excel 2K ArthurB Excel Programming 0 February 26th 04 04:46 PM


All times are GMT +1. The time now is 02:26 AM.

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

About Us

"It's about Microsoft Excel"