Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 14th, 2003, 08:25 AM
Registered User
 
Join Date: Aug 2003
Location: , , United Kingdom.
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?

Reply With Quote
  #2 (permalink)  
Old August 14th, 2003, 08:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
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
Reply With Quote
  #3 (permalink)  
Old August 15th, 2003, 10:54 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old August 15th, 2003, 04:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , Denmark.
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



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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:00 PM.


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