Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Query Error
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 May 2007 :  18:30:07  Show Profile  Send ruirib a Yahoo! Message
Use a rs1 to execute the query where you are having problems.

To reuse the connection string, place it in a include file, just as Snitz does (our connection string is in config.asp).


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 10 May 2007 :  18:31:34  Show Profile
Ok Let me try that
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 10 May 2007 :  18:40:37  Show Profile

Wow... Worked.. Thnx a lot...
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 May 2007 :  19:02:10  Show Profile  Send ruirib a Yahoo! Message
That probably means that you are not closing the initial recordset after its use - another really nasty programming habit and cause for numerous errors and headaches.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 11 May 2007 :  03:27:40  Show Profile

But if you see my code above,

you will find

If RS.State=1 then
RS.Close
End IF
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 May 2007 :  03:46:50  Show Profile  Send ruirib a Yahoo! Message
I have never seen such a test being used. As you could see, the problem was that the recordset was still open.
When you open a recordset, get the records and close it immediately. I don't know what you use for reference, but if you have no quality reference, have a serious look at the way Snitz does it. You won't see that rs.state test in the Snitz code and I have never seen it in the couple ASP books I have.,


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 11 May 2007 :  04:36:38  Show Profile
Ok

Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07