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 July 22nd, 2003, 06:39 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Page Doesn't Display

I copied the following code from the book and tried to view it in my browser but got the following error:
      "Microsoft Jet Database engine cannot open file '(unknown)'
       Database is already opened exclusively by another user or you
       need permission to view its data."

Can someone please tell me how to resolve this?? Thanks.

<%@Language=VBScript%>
<html>
<head>
<title>Home Page</title>
</head>
<body>
<p>This line from HTML</p>

<p>Next line from ASP will work<br>
if ASP extensions installed correctly:<br>
<%
  response.write "<b>From ASP</b>"
%>

<p>Next line from ADO will work if a DSN named sailors has been set<br>
for the database which is named SAILORS.MDB.</p>
<%
  set oRS=server.createobject("ADODB.recordset")
  oRS.open "Select * from People", "DSN=sailors"
  oRS.movefirst
  response.write "<b>" & oRS("PeopleNameLast") & "</b>"
%>

Finished test page</p>
</body>
</html>



 
Old July 24th, 2003, 04:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Check the permission for the account named IUSR_[your_machine_name] on appropriate .mdb file.

...but the Soon is eclipsed by the Moon





Similar Threads
Thread Thread Starter Forum Replies Last Post
first page display eyalec BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 July 21st, 2008 03:17 AM
problem about page display bbqlee Access 1 July 16th, 2006 02:06 AM
ASP Page within ASP Page display Pharasite Classic ASP Professional 8 July 23rd, 2004 06:57 AM
Time & date insert and display in myql/asp page karib MySQL 3 June 30th, 2004 05:29 AM
passing values from ASP page to a popup ASP Page astrosmurfboy Classic ASP Basics 3 April 21st, 2004 08:17 PM





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