troubleshooting Question

ADODB.Recordset error '800a0e78' Operation is not allowed when the object is closed. - ASP

Avatar of milani_lucie
milani_lucieFlag for United States of America asked on
ASP
4 Comments2 Solutions688 ViewsLast Modified:
Hi,

I am getting that error. Here is the code:

dim Kcn, Krs

set Kcn = server.CreateObject("ADODB.Connection")

Kcn.ConnectionString = "server=Personal;uid=Sam;pwd=Password;provider=SQLOLEDB;database=Sample"

Kcn.OPEN

set Krs = Kcn.execute("EXEC uspSample")  // "uspSample" is stored procedure name

do while not Krs.EOF  // Error here

loop

Thanks
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros