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 February 8th, 2005, 07:24 AM
Authorized User
Join Date: Sep 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Nitin_sharma Send a message via Yahoo to Nitin_sharma
Default database connection

Hi Guys,
I have the following code and it gives the error provided below.
Any help is appreciated.


dim i_title
dim i_text
dim valid_date
dim iauto_delete
dim expiry_date
dim current_date
dim user_id
dim dbCmd

i_title = request("title")
Valid_date = request("expdate")
iauto_delete= request("auto_delete")
expiry_date= request("expirydate")
current_date = request("hidSysDate")

call open_db_connection()
set dbCmd = Server.CreateObject("ADODB.COMMAND")
cmd.ActiveConnection = con
Const Bulletin_insert = "{call HMIS_BULLETIN_Pkg.INSERT_BULLETIN_PROC(?,?,?,?,?,? ,?,?)}"
with dbCmd
.CommandText = Bulletin_insert
.CommandType = adCmdText
.Parameters(0).direction = adParamInput
.Parameters(1).direction = adParamInput
.Parameters(2).direction = adParamInput
.Parameters(3).direction = adParamInput
.Parameters(4).direction = adParamInput
.Parameters(5).direction = adParamInput
.Parameters(6).direction = adParamInput

.Parameters(0).Value = i_title
.Parameters(1).Value = i_text
.Parameters(2).Value =current_date
.Parameters(3).Value =i_valid_date
.Parameters(4).Value = i_auto_delete
.Parameters(5).Value = expiry_date
.Parameters(6).Value = user_id

end with
set dbCmd = nothing

ADODB.Command error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/hmis/NITIN/asp_files/HMIS_Add_Bulletins.asp, line 347


Old February 8th, 2005, 10:23 AM
Friend of Wrox
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts

Can you identify line 347 on your posted code? Also, make sure that you have spelled the field name correctly and that the field exists in the database.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Connection to Access Database reachsevar ASP.NET 2.0 Basics 1 November 28th, 2007 08:56 AM
Database Connection oneillg PHP Databases 1 October 17th, 2007 04:48 PM
Database Connection kapi.goel SQL Language 2 February 14th, 2006 07:01 PM
Connection to database exdter Dreamweaver (all versions) 3 September 21st, 2004 02:22 PM

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