Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2005, 02:30 AM
Authorized User
 
Join Date: May 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default disconnected recordset

Hi,
I have doubt in disconnected recordset,after retriving the Rows from Table and i set rs.activeconnection=nothing after that whether we can insert/update records in to the Table by re-establishing the connection??????

 
Old April 24th, 2005, 06:37 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

If you close your connection, no you can not. Why close your connection if you havnt finished with it? I open a connection in the head of my page, do transactions where neccessary then close it in the foot (make sure you do close connections)

BTW: If you are going to use records multiple times on a page and do not need to execute any further queries, you can
1. Open RS
2. RS.getRows() (put into array)
3. Set Rs = nothing
4. conn.close() (close connection)
5 Set conn = nothing

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dcount with local disconnected recordset DreamEagl Access VBA 7 March 10th, 2006 01:44 PM
Report from disconnected recordset DreamEagl Access VBA 4 January 9th, 2006 04:26 PM
Disconnected data architecture kumar_raj13 ADO.NET 1 December 6th, 2005 12:00 AM
VB Collection object Vs Disconnected Recordset Andypat Pro VB Databases 1 February 15th, 2005 06:57 PM
Updating disconnected datasets AgentSmith ADO.NET 7 July 26th, 2004 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.