473,626 Members | 3,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database connection error: ADODB.Command error '800a0cc1'

1 New Member
I'm hoping someone can help me. I keep receiving the ADODB.Command error '800a0cc1' error (Item cannot be found in the collection corresponding to the requested name or ordinal.) I found a couple similar errors on the discussions but am not tracking how to apply the fixes into my code, which of course is slightly different...I'm using Visual Interdev 6.0 with MS SQL Enterprise Mgr 8.0. I'm linking an .asp page to a stored procedure and I've simplified both to find the error to no avail...

ASP:
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Cmd = Server.CreateOb ject("ADODB.Com mand")
Conn.Connection String = "Provider=SQLOL EDB.1;Persist Security Info=False;User ID=XXuser;Passw ord=XXuser;Init ial Catalog=OPGIntr anet;Data Source=PDXsrv57 "
Conn.Open
Set Cmd.ActiveConne ction = Conn
strLogonId = Request.ServerV ariables("LOGON _USER")
Response.Write strLogonId
Cmd.CommandType = 4 'adCmdStoredPro c
Cmd.CommandText = "usp_Get_UserDa ta" 'ERROR LINE
Cmd.Parameters( "@parm_UserLogo n").Value = strLogonId
Cmd.Execute()
strUserFirstNam e = Cmd.Parameters( "@parmOut_UserF irstName").Valu e
Set Cmd = Nothing
Set Conn = Nothing

Stored Procedure: (usp_Get_UserDa ta)
@parm_UserLogon NetworkLogon,
@parmOut_UserFi rstName varchar(20) OUTPUT
AS
SET @parmOut_UserFi rstName = 'Debbie'
GO

Thanks all!
Aug 3 '07 #1
1 8869
ilearneditonline
130 Recognized Expert New Member
Look at this post... Link

I'm hoping someone can help me. I keep receiving the ADODB.Command error '800a0cc1' error (Item cannot be found in the collection corresponding to the requested name or ordinal.) I found a couple similar errors on the discussions but am not tracking how to apply the fixes into my code, which of course is slightly different...I'm using Visual Interdev 6.0 with MS SQL Enterprise Mgr 8.0. I'm linking an .asp page to a stored procedure and I've simplified both to find the error to no avail...

ASP:
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Cmd = Server.CreateOb ject("ADODB.Com mand")
Conn.Connection String = "Provider=SQLOL EDB.1;Persist Security Info=False;User ID=XXuser;Passw ord=XXuser;Init ial Catalog=OPGIntr anet;Data Source=PDXsrv57 "
Conn.Open
Set Cmd.ActiveConne ction = Conn
strLogonId = Request.ServerV ariables("LOGON _USER")
Response.Write strLogonId
Cmd.CommandType = 4 'adCmdStoredPro c
Cmd.CommandText = "usp_Get_UserDa ta" 'ERROR LINE
Cmd.Parameters( "@parm_UserLogo n").Value = strLogonId
Cmd.Execute()
strUserFirstNam e = Cmd.Parameters( "@parmOut_UserF irstName").Valu e
Set Cmd = Nothing
Set Conn = Nothing

Stored Procedure: (usp_Get_UserDa ta)
@parm_UserLogon NetworkLogon,
@parmOut_UserFi rstName varchar(20) OUTPUT
AS
SET @parmOut_UserFi rstName = 'Debbie'
GO

Thanks all!
Aug 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2581
by: Anand | last post by:
Hi i am having trouble adding a recordset into the access database, the code seems to be working fine it passs and parses through all variables just fine without showing any errors and also when i access the recordset it displays the results, what the real issue is that the entry is not made into the database even though i use the Update command and i have also tried the BeginTrans and CommitTrans nothign seems to work and i am unable to...
4
2797
by: Racer-D | last post by:
When some of the SQL Server stored procedures I have written are called via my Classic ASP page I have written I get the following error in the cell that is supposed to be retrieving a single result: "ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the requested name or ordinal. /Default.asp, line 130"
4
1681
by: nick_faye | last post by:
hi guys, hope somebody can assist me. i have two ms access database. i have to copy the entries in database1 to my database2. however, i have to copy entries from database1 that does not exist yet in the entries in my database2. i am using INSERT INTO table_in_database2 SELECT fields_from_table_in_database1 FROM table_in_database1 IN directory_of_database1. i was trying to put a WHERE command but i always get an error. please help.
7
12794
by: ZRexRider | last post by:
Hi, I'm developing an application that runs on laptops that periodically connect to network. I am collecting data in local tables within the MDB. I want to recognize the occasional network connection so I can upload the collected data to SQL server and retrieve updated look-up information. This application has 2 linked SQL server tables that are not used until I find myself connected to the network. Since I have these links, I
1
2365
by: nicholas | last post by:
To insert a record in a Ms Access database and be able to retrieve the newly created ID (autonumber) I used the code below (code 1). Now, the problem is that this is not very secure and that, if for example an insertion contains a ' or a " this code fails. It is much better to work with @parameters. So could someone change my code to make it work with @parameters and that I still can retrieve that autonumber. (note that it is for a MS...
1
4727
by: dave | last post by:
I'm classic ASP developer and trying to switch to .net ...I'm newbie to ..net... In classic ASP for ADO connectivity i used to put below code in one separate file and used to include that file whereever I need database opreation... Dim objDatabase Set objDatabase = Nothing '-- Singleton for the CDatabase class Function Database If objDatabase Is Nothing Then Set objDatabase = New CDatabase End If
0
7708
by: gm | last post by:
Immediately after generating the Access application from the Source Safe project I get: "-2147467259 Could not use ''; file already in use." If Access database closed and then reopened I get: "-2147467259 The database has been place in a state by user 'Admin' on machine ..... that prevents it from being opened or locked."
9
1943
by: =?Utf-8?B?VCBNY0RvbmFsZA==?= | last post by:
I'm having some issues with a dll I've created to return an ADOConnection back to an ASP script. I successfully open my object: mytest = Server.CreateObject("mydll.database") I then attempt to use the connection: myConnection = mytest.getConnection This is where the script breaks down with an "Object required" error.
0
1970
by: Robert Avery | last post by:
In VBA/VB6, I had a class (incomplete sample below) that watched and displayed for the user all connection events, so that I could easily see what SQL was taking a long time, and when it freezes, I could see what is the SQL that freezes the program. I wanted to replicate this for VB.NET, but the SqlConnection object does not seem to support nearly as rich a set of events as the ADODB.Connection object. Any ideas where these events went,...
0
8269
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
8203
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
8711
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...
1
8368
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8512
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
7203
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
6125
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
4094
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1815
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.