473,409 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

1
I am running into this error code and it specifically says: "No value given for one or more required parameters. " ConStr is a valid connection, as I am able to get other data using it (not closing the connection after instanciating it).

Set Db_commandtext = CreateObject("ADODB.Command")
Set Db_commandtext.ActiveConnection = ConStr

a = 0
b = 0
c = 0
d = 0
Sqltext = "call ppu10.getEMTS(?,?,?,?,?,?,?,?,?,?,?,? INDICATOR :a, ? INDICATOR :b, ? INDICATOR :c, ? INDICATOR :d)"

Db_commandtext.CommandText = Sqltext
Db_commandtext.CommandType = adCmdStoredProc

Response.Write thisLocn & "<br>"
Response.Write thisFac & "<br>"
Response.Write thisTrackStat & "<br>"
Response.Write thisCatlg & "<br>"
Response.Write thisWo & "<br>"
Response.Write thisPrNo & "<br>"
Response.Write thisPrLine & "<br>"
Response.Write thisMr & "<br>"
Response.Write thisEPIKey & "<br>"
Response.Write testTransfer & "<br>"
Response.Write thisSirReqInd & "<br>"
Response.Write a & "<br>"
Response.Write b & "<br>"
Response.Write c & "<br>"
Response.Write d & "<br>"

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm1", adVarChar, adParamInput, 3, thisLocn)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm2", adVarChar, adParamInput, 3, thisFac)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm3", adVarChar, adParamInput, 10, thisTrackStat)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm4", adVarChar, adParamInput, 10, thisCatlg)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm5", adVarChar, adParamInput, 20, thisWo)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm6", adVarChar, adParamInput, 8, thisPrNo)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm7", adVarChar, adParamInput, 4, thisPrLine)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm8", adVarChar, adParamInput, 8, thisMr)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm9", adVarChar, adParamInput, 20, thisEPIKey)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm10", adVarChar, adParamInput, 10, thisTransfer)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm11", adVarChar, adParamInput, 3, thisSirReqInd)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm12", adInteger, adParamOutput, a)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm13", adVarChar, adParamOutput, 5, b)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm14", adVarChar, adParamOutput, 250, c)

Db_commandtext.Parameters.Append Db_commandtext.CreateParameter("parm15", adInteger, adParamOutput, d)



Set qryNew = Server.CreateObject("ADODB.Recordset")
qryNew.Open Db_commandtext.Execute

Could anyone tell me what I'm doing wrong here? From my debug code, I am placing values in each of the variables assigned to the parameters.


The Database is DB2, thus the indicators.
Oct 12 '06 #1
0 3876

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

Similar topics

2
by: paul tomlinson | last post by:
Hi folks - i've got a windows 2000 server (SP3) i've run the IIS lockdown tool on it and set for dynamic websites - all the static pages within the site work ok but an ASP section has been put in...
2
by: Mark Sargent | last post by:
Hi All, what does the below error mean in plain English..? Cheers. Mark Sargent. Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) General error Unable to open
7
by: BrianS | last post by:
I am receiving this error anytime I attempt to connect to a MS access DSN. Not clue what happened to trigger this suddenly. Any help is greatly appreciated.
15
by: M P | last post by:
What does this mean? I am accessing an ASP page that queries Access Database thru fileDSN. I'm using IIS 5.0 Win2K SP4 Microsoft OLE DB Provider for ODBC Drivers error '80004005' General...
1
by: Albert | last post by:
Hi guys, it's nice to join the forum. Can someone can help me? After 2 years of using a program, i suddenly got this error. I tried re-installing SQL but im still getting the message. ...
1
by: Rajiv | last post by:
hi all , i m trying to coneect to a access database Using DSN dim rcon set rcon = server.CreateObject("ADODB.CONNECTION") rcon.mode = 1 ' adModeRead rcon.ConnectionString ="DSN=report" ...
2
by: pericpero | last post by:
Hi There seem to be a number of posts already with this error message but none of them have helped me ... I am trying to execute some dynamic SQL from an ASP form to update or delete from a...
0
by: Genken | last post by:
Please assist in this error i have provided the source code. Microsoft OLE DB Provider for ODBC Drivers (0x80040E10) Too few parameters. Expected 1. <% Set objconn =...
2
by: Rheal | last post by:
Hi Can someone help me. My error is : Microsoft OLE DB Provider for ODBC Drivers error '80040e07' Data type mismatch in criteria expression. /add.asp, line 73 my codes are <% dim...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.