If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP 'n Access Issues

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-11-03, 18:31
MartiniMon MartiniMon is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
ASP 'n Access Issues

Well,

Here is yet another ASP/Access error 80004005 and thanks for the time. If you are going to respond please read the whole post though.

Error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; file already in use.

/q.asp, line 15

Now, of the myriad and more obvious reasons this occurs when more than one recordset(RS) is created in ASP.

When this script is executed, it alternates between failing at the SECOND RS declaration, a reload fails at the FIRST RS and continues to alternate.

I have a feeling that new MS patches are causing some kinf of tightened security or other. The DSN checks out with proper rights and there is not an error in the connection string.

Anyone seeing this phenom?



See the code below:

Code:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connNonProd.asp" -->
<%
var rsStates = Server.CreateObject("ADODB.Recordset");
rsStates.ActiveConnection = MM_connNonProd_STRING;
rsStates.Source = "SELECT * FROM tblStates";
rsStates.CursorType = 0;
rsStates.CursorLocation = 2;
rsStates.LockType = 3;
rsStates.Open();
var rsStates_numRows = 0;
%>
<%
var rsTypes = Server.CreateObject("ADODB.Recordset");
rsTypes.ActiveConnection = MM_connNonProd_STRING;
rsTypes.Source = "SELECT * FROM tblCreditCardTypes";
rsTypes.CursorType = 0;
rsTypes.CursorLocation = 2;
rsTypes.LockType = 3;
rsTypes.Open();
var rsTypes_numRows = 0;
%>
<%
var Repeat1__numRows = -1;
var Repeat1__index = 0;
rsStates_numRows += Repeat1__numRows;
%>
<%
var Repeat2__numRows = -1;
var Repeat2__index = 0;
rsStates_numRows += Repeat2__numRows;
%>
<html>
<head>
Reply With Quote
  #2 (permalink)  
Old 09-11-03, 18:34
MartiniMon MartiniMon is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
BTW

I have also attempted to use different cursor type, but the problem seems to lie elsewhere. A single RS works totally fine.

DB type is Access // IIS w/o .net
Reply With Quote
  #3 (permalink)  
Old 09-23-03, 02:50
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
I think there might be something wrong in Connections/connNonProd.asp since the database file couldn't be found.
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On