Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 September 6th, 2005, 07:21 AM
Authorized User
 
Join Date: Mar 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to arimakidd
Default Provider Error Getting Me Upset

Ok folks could you all critique, this script of mine. The reason being is that it works fine when I test it locally on my pc, but when I put it on an intranet server running on Windows 2000 Advanced Server after a couple of request and it shows good, the memory seems to run out and I get the usual error which states,
Code:
Provider Error 80004005
Unspecified error
/current_code.asp
Here is the completed script. Just to mention, this is the script that processes your choice of radio button from another page. Here it is:

Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Current Code Document 2</title>
</head>

<body>
<%
Dim countn
Sub MakeTable(SourceIn,dsnIn)
Dim oRSmt
Set oRSmt = Server.CreateObject("ADODB.Recordset")
oRSmt.CursorLocation = 3 'Used to keep count of how many records are going to be displayed
oRSmt.Open SourceIn, "DSN=" & dsnIn
oRSmt.MoveFirst
Response.Write "<TABLE BORDER='1'><TR>"
For Each Field in oRSmt.Fields
 Response.Write"<TH>" & Field.name & "</TH>"
Next

Do While NOT oRSmt.EOF
 Response.Write "<TR>"
 For each objField in oRSmt.Fields
 Response.Write "<TD>" & objField.value & "&nbsp;</TD>"
  Next
countn = oRSmt.RecordCount 'Assign the record count to variable countn
oRSmt.MoveNext
Response.Write "</TR>"
Loop
Response.Write "</TR></TABLE>"
oRSmt.Close
Set oRSmt = nothing
End Sub
%>
<h2>REPORT RESULTS</h2>
<p>
<% 
Dim sORce
sORce = Request.Form("report")
'Response.Write sORce
call MakeTable(sORce,"TileData")
%></p>
<p><br>
  Total Number of Reports are:  
<%
Response.Write "<strong>" & countn & "</strong>"
%>
<br>
To generate another report click your go back button or <a href="reports.asp">click here</a>. </p>
</body>
</html>
Opinions and suggestions please.

 
Old September 7th, 2005, 10:00 AM
Authorized User
 
Join Date: Mar 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to arimakidd
Default

Isn't it great when you solve your own problems. To solve this little problem I had I needed to specify "FULL CONTROL" in the security tab of the properties of the folder for the IUSR_machinename account. The problem was due to the fact it had only Read/Write properties. It works like a charm now. SUPER.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership Provider error jamara ASP.NET 2.0 Basics 1 March 12th, 2007 02:01 PM
Provider Access Error ashoka_klt Classic ASP Professional 0 September 8th, 2006 06:28 AM
Oracle provider error bikerd Pro VB Databases 2 April 4th, 2005 11:26 AM
Provider error in p2p pages. happygv Forum and Wrox.com Feedback 2 August 13th, 2004 06:16 PM
upset from DataGrid alyeng2000 ASP.NET 1.0 and 1.1 Professional 5 July 1st, 2004 04:09 PM





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