473,785 Members | 2,714 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ADO (MDAC) issue

ivy
I have a problem lies with a meta tag. Below is my code:
<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.5
Library" UUID="{00000205-0000-0010-8000-00AA006D2EA4}"
VERSION="2.5"-->
This is suppose to set a reference to a MDAC file which will hold many
constants. The error appears on the following line:
oComp.AddParam "@UserID", adVarChar, adParamInput, 100, msUserID
Error message.
Microsoft VBScript runtime (0x800A01F4)
Variable is undefined: 'adVarChar'

I actually narrowed it down to an ADO (MDAC) issue. What I did was
that I included the adovbs.inc file which has all the constants
defined. Next, I ran the application. The error that I received
before went away but I encounter a error executing an ado command.
So, I tried to set the constants on the page and it help but not
entirely because I think this is a MDAC issue.

Can anyone help please?

Thanks!
Jul 19 '05 #1
2 4345
ivy wrote:
I have a problem lies with a meta tag. Below is my code:
<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.5
Library" UUID="{00000205-0000-0010-8000-00AA006D2EA4}"
VERSION="2.5"-->
This is suppose to set a reference to a MDAC file which will hold many
constants. The error appears on the following line:
oComp.AddParam "@UserID", adVarChar, adParamInput, 100, msUserID
Error message.
Microsoft VBScript runtime (0x800A01F4)
Variable is undefined: 'adVarChar'
Your meta tag is probably referring to the wrong version of ADO. see this
page for the correct metadata tag for the version of ADO on your server:
http://www.aspfaq.com/show.asp?id=2112

I actually narrowed it down to an ADO (MDAC) issue. What I did was
that I included the adovbs.inc file which has all the constants
defined. Next, I ran the application. The error that I received
before went away but I encounter a error executing an ado command.
What error?
So, I tried to set the constants on the page and it help but not
entirely because I think this is a MDAC issue.

Can anyone help please?

Not without knowing the error.

Bob Barrows
Jul 19 '05 #2


--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

"ivy" <in*@xanedu.com > wrote in message
news:55******** *************** ***@posting.goo gle.com...
I have a problem lies with a meta tag. Below is my code:
<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.5
Library" UUID="{00000205-0000-0010-8000-00AA006D2EA4}"
VERSION="2.5"-->
This is suppose to set a reference to a MDAC file which will hold many
constants. The error appears on the following line:
oComp.AddParam "@UserID", adVarChar, adParamInput, 100, msUserID
Error message.
Microsoft VBScript runtime (0x800A01F4)
Variable is undefined: 'adVarChar'

I actually narrowed it down to an ADO (MDAC) issue. What I did was
that I included the adovbs.inc file which has all the constants
defined. Next, I ran the application. The error that I received
before went away but I encounter a error executing an ado command.
So, I tried to set the constants on the page and it help but not
entirely because I think this is a MDAC issue.

Can anyone help please?
Be sure you have ADO 2.5 installed and second, you should include that tag
in global.asa but not within the <% %> tags!
Third, do not use both. OR use advbs.inc OR use the metatag...
Thanks!


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3999
by: Zach Gastineau | last post by:
I'm having problems using the DB2 Connect ODBC Driver in my SQL Server 2000 DTS packages. It started occuring after installing MDAC 2.7 (which is necessary for the .NET framework). This error occurs when I try to open the transformation that uses an ODBC Connection object that is pointing to the DB2 ODBC. Has anybody else seen this or has a solution other than re-installing everything and not loading the .net framework mdac 2.7. I...
1
1785
by: Terry H | last post by:
Hi I am deploying a winforms app via the windows installer and a VS.Net 2003 setup and deploymnet project. At the moment, I am adding launch conditions for the .Net Framework 1.1 and MDAC 2.7 or higher, and am prompting the user to run the relevant setup files if they're missing. I'm including these setup files on the CD. I can't work out from the Data Access downloads page, which MDAC file I need
29
580
by: DraguVaso | last post by:
Hi, I'm having this error in a VB.NET-application at the moment that I attempt to read data from an SQL Server: The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data Access Components(MDAC) version 2.6 or later. at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) at
1
3390
by: Salad | last post by:
Hi: I am developing an application using FoxPro 2.x tables. My client has AccessXP. AccessXP uses Visual Foxpro ODBC to connect to tables. It does not accept the ISAM Foxpro driver used in A97. I have a problem that when I link to the tables on the client machine AccessXP does not recognize boolean values in the FoxPro tables. I assume this is due to the ODBC driver. I'd like to test this out on my development machine. I...
1
2311
by: B | last post by:
I need advise. Are there any implications when installing MDAC 2.5 on top of MDAC 2.6 RTM? The applications on client pc's will only be running MS Access. Reason of the downgrade is the server where I pull data from (SQL Server) have MDAC 2.5. Will it be safe to do a straight install without having to uninstall 2.6 first?
2
473
by: bala | last post by:
hi gurus have a ms access front end application in window 2000 professional operating system. need to connect to MS SQL Server 2000. the frontend MS Access application is connected to the MS SQL Server 2000 database using ADO Connection Object and OLEDB Providers. in some machine it is successfully connecting but in some machines it is giving raise to the following error message (or something similar)
2
1611
by: Robert W. | last post by:
I'm trying to add simple database functionality with a Windows Forms app I'm building. FYI my development machine is running Windows XP Pro, with all the service packs installed. First I tried using the standard OLEDB connection string (ie. "Provider=Microsoft.Jet.OLEDB.4.0...") but got this message when it tried to open the connection: "The .Net Data OLE DB Provider(System.DAta.OleDb) requires Microsft Data Access Component(MDAC)...
1
2842
by: Rvo | last post by:
I made a VB.Net application that connects to some Oracle Databases, on my machine (W2K latest SP and pathes, VS2003) the application runs fine. On my machine I had MDAC 2.5xx installed. When I try to run my installer application on a different computer (w/o .NET installed, but after installing the .NET Framework), I get an error. The specific error is: "The .Net Data OLE DB Provider (System.Data.OleDb) requires Microsoft Data Access...
10
1950
by: bz | last post by:
Hi, When writing database program with VB.NET that accesses MDB and XLS file, do you guys know if I still need to distribute MDAC and JET4 to the client machine? Or .NET framework already comes with all those drivers? Thanks!
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.