Also, please follow up on this question:
http://www.experts-exchang
Main Topics
Browse All TopicsPlease tell me what am I doing wrong here is my SP:
<%@ LANGUAGE=vbscript enablesessionstate=false LCID=1033 %>
<!--#include file="../Connections/newdi
<%
Dim Command1__pf_id
Command1__pf_id = ""
if(Request("pf_id") <> "") then Command1__pf_id = Request("pf_id")
Dim Command1__item_id
Command1__item_id = ""
if(Request("item_id") <> "") then Command1__item_id = Request("item_id")
Dim Command1__name
Command1__name = ""
if(Request("name") <> "") then Command1__name = Request("name")
Dim Command1__description
Command1__description = ""
if(Request("description") <> "") then Command1__description = Request("description")
Dim Command1__list_price
Command1__list_price = ""
if(Request("list_price") <> "") then Command1__list_price = Request("list_price")
Dim Command1__image_file
Command1__image_file = ""
if(Request("image_file") <> "") then Command1__image_file = Request("image_file")
Dim Command1__cost_price
Command1__cost_price = ""
if(Request("cost_price") <> "") then Command1__cost_price = Request("cost_price")
Dim Command1__sale_price
Command1__sale_price = ""
if(Request("sale_price") <> "") then Command1__sale_price = Request("sale_price")
Dim Command1__sale_start
Command1__sale_start = ""
if(Request("sale_start") <> "") then Command1__sale_start = Request("sale_start")
Dim Command1__sale_end
Command1__sale_end = ""
if(Request("sale_end") <> "") then Command1__sale_end = Request("sale_end")
Dim Command1__status
Command1__status = ""
if(Request("status") <> "") then Command1__status = Request("status")
%>
<%
set Command1 = Server.CreateObject("ADODB
Command1.ActiveConnection = MM_newdiamonds_STRING
Command1.CommandText = "dbo.DiamondsByProduct"
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
' Command1.CommandType = 4
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%>
<%
set Command1 = Server.CreateObject("ADODB
Command1.ActiveConnection = MM_newdiamonds_STRING
Command1.CommandText = "dbo.DiamondByDepartment"
Command1.CommandType = 4
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Parameters.Append
Command1.Parameters.Append
Command1.Parameters.Append
Dim Command1__dept_id
if Request("dept_id").Count <> 0 then
for index = 1 to Request("dept_id").Count
Command1.Parameters("@dept
Command1.Execute()
next
end if
%>
and here is the error message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Procedure 'DiamondsByProduct' expects parameter '@pf_id', which was not supplied.
/manager/insertsp.asp, line 69
line 69 is reffering to the
Command1.Execute()
and I can print pf_id if I do the response.write thing.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Also, please follow up on this question:
http://www.experts-exchang
>>none of the answers are correct <<
See here:
I answered my question myself. What do I do?
http://www.experts-exchang
The only way you are going to find that is if you post a message in Community Support as indicated in the link I posted. In the meantime this question is considered technically abandoned. See here for more info:
What happens if I don't close my question?
http://www.experts-exchang
Business Accounts
Answer for Membership
by: acperkinsPosted on 2004-07-16 at 18:17:32ID: 11573147
Without seeing your stored procedure or at least the header (everything up to the "AS") it is a little difficult to know.