473,410 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

another error type

Thanks for the reply it helped me but then I get this

Error Type:
Provider (0x80004005)
Unspecified error
/asp/PPLMain/memberpage.asp, line 10

and my line 10 is still

RsMember.ActiveConnection = MM_connPPL2_STRING

I dont understand. Anyone can help me?

-----------------------------
This message is posted by http://Asp.ForumsZone.com

Jul 19 '05 #1
1 2433
That's a bad way of doing things.

You should be:
a) opening an explicit connection object
b) setting the recordset's .ActiveConnection property to the connection
object
c) explicitly closing the connection object at the end of the page

<%
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open MM_connPPL2_STRING

Set objRS = Server.CreateObject("ADODB.Connection")
Set objRS.ActiveConnection = objConn
'
' Rest of the page here
'
objConn.Close
Set objConn = Nothing
%>

At the moment you are implicitly creating a connection to the database, but
you never closing it. It's hanging around until it eventually times out. The
number of open connections is probably building up until you get this error.

Cheers
Ken

"Iona" <io**********@hotmail.com> wrote in message
news:72************@Asp.ForumsZone.com...
: Thanks for the reply it helped me but then I get this
:
: Error Type:
: Provider (0x80004005)
: Unspecified error
: /asp/PPLMain/memberpage.asp, line 10
:
: and my line 10 is still
:
: RsMember.ActiveConnection = MM_connPPL2_STRING
:
: I dont understand. Anyone can help me?
:
: -----------------------------
: This message is posted by http://Asp.ForumsZone.com
:
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Tim Gaunt | last post by:
Hi, I'm hoping that someone will be able to help me with this one, I'm developing an application which basically inserts a load of data into the database ready for validation at a later date, I...
9
by: Tom | last post by:
I have created the following code for a product select/payment form (don't know if there is a better way) and I have been trying to make the following changes (unsuccessfully so far): 1) ...
15
by: C White | last post by:
I've got another drop list problem I am using the following code where users select a name, but it should pass a name and email into the table <select name="user"> <option value="<%...
10
by: Toke H?iland-J?rgensen | last post by:
Hello. I am quite new to the c++ language, and am still trying to learn it. I recently discovered how using include files would allow me to split up my code into smaller segments, instead of having...
0
by: rob | last post by:
I did create a dll A using managed c++. I have no problem using this dll in a .NET application using c#. I now have another dll B that uses functionality from the first dll A. When building dll B I...
5
by: M O J O | last post by:
Hi, I want to expose a enum from another class, is that possible and how? Here's an example Public Class ClassMaster Public Enum Colors
1
by: pikulsky | last post by:
There is a managed C++ class (ManagedClass) defined in one library (TestMCpp.dll), it has a method (funcTemplate) with template native type (NativeTemplate<int>). This library is built without any...
6
by: fcvcnet | last post by:
Hi, I read the book C++ Primer, Fourth Edition By Stanley B. Lippman, Jos¨¦e Lajoie, Barbara E. Moo "If we define a class using the class keyword, then any members defined before the first...
24
by: =?Utf-8?B?RHIuIFMu?= | last post by:
I am incorporating three existing programs into a new "all in one" program. I have added the three projects to the new all in one project. How do I instruct the new initial menu to launch the main...
1
by: Yan | last post by:
Hi, I'm apparently far from being the 1st one to meet this error... My asp.net ajax page requires ScriptManager.axd but gets a 404. following a lot of "This is how I solved it" posts, I : -...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.