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 August 14th, 2003, 08:25 AM
Registered User
 
Join Date: Aug 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP beginner needs help!!

I keep getting the following error:


Microsoft VBScript compilation error '800a0411'

Name redefined

/databass/site/globals/adovbs.inc, line 15

Const adOpenForwardOnly = 0
------^




what am i doing worng?

 
Old August 14th, 2003, 08:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

That just means you're trying to define the same constant twice, so you either have it twice in your copy of adovbs.inc, or else its defined in your asp page (or another include called from that page) as well as in adovbs.inc.

A simple text search will enable you to find the duplicate ocurrence which you need to delete.

hth
Phil
 
Old August 15th, 2003, 10:54 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Instead of adding the include to every page Put this tag in your global.asa file

<!-- METADATA
        TYPE="typelib"
        FILE="C:\Program Files\Common Files\System\ADO\msado20.tlb"
-->

Now you never have to use the include for adovbs.inc ever again!

full reference http://www.4guysfromrolla.com/webtech/110199-1.shtml

 
Old August 15th, 2003, 04:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

Just a note of caution:
As Owain mentioned in http://p2p.wrox.com/topic.asp?TOPIC_ID=2990
you should beware of .inc

A detailed discussion of INCLUDE:
http://www.4guysfromrolla.com/webtech/020400-2.shtml








Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner to ASP .net 2.0 help chuckd ASP.NET 2.0 Basics 0 September 1st, 2006 11:31 PM
asp.net beginner ubsacc2004 ASP.NET 1.0 and 1.1 Basics 2 April 26th, 2006 10:49 AM
asp.net beginner LAKESIDE Classic ASP Databases 0 January 2nd, 2006 11:28 AM
A beginner in ASP.Net need help hoailing22 ASP.NET 1.0 and 1.1 Basics 4 May 11th, 2005 12:56 AM
ASP.NET beginner Anup Gavate ASP.NET 1.0 and 1.1 Basics 1 April 21st, 2005 12:49 PM





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