Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > insert with SP

Reply
Thread Tools

insert with SP

 
 
shank
Guest
Posts: n/a
 
      03-03-2005
I'm trying to insert a customer profile with a stored procedure. This same
code has worked on other sites. But on this site, it appears to be ignored.
Nothing happens. The page loads fine with all the Request objects being
filled. The Insert code does nothing. I changed stp_InsertClient to
stp_xInsertClient just to see what happens. No errors, page loads, Request
objects are filled. All other ASP pages load fine. I setup the same code in
Query Analyzer and it works fine. Where should I be looking?
thanks

--------------------------------------------------------
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/JSK.asp" -->
<%
set InsertClient = Server.CreateObject("ADODB.Command")
InsertClient.ActiveConnection = MM_JSK_STRING
InsertClient.CommandText = "stp_InsertClient"
InsertClient.Parameters.Append InsertClient.CreateParameter("@Email", 200,
1,60,Request("Email"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@Password",
200, 1,20,Request("Password"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@FirstName",
200, 1,20,Request("FirstName"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@LastName",
200, 1,20,Request("LastName"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@Company", 200,
1,30,Request("Company"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@City", 200,
1,20,Request("City"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@Statte", 200,
1,20,Request("States"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@Country", 200,
1,20,Request("Country"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@StreetNumber",
200, 1,20,Request("StreetNumber"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@StreetName",
200, 1,30,Request("StreetName"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@Building",
200, 1,20,Request("Building"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@Region", 200,
1,20,Request("Region"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@PostalCode",
200, 1,10,Request("PostalCode"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@AreaCode",
200, 1,10,Request("AreaCode"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@RegionCode",
200, 1,10,Request("RegionCode"))
InsertClient.Parameters.Append InsertClient.CreateParameter("@PhoneNumber",
200, 1,10,Request("PhoneNumber"))
InsertClient.CommandType = 4
InsertClient.CommandTimeout = 0
InsertClient.Prepared = true
InsertClient.Execute()
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd<br>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1<br>
<title>Untitled Document</title>
</head>

<body>
<%=Request("Password")%><br>
<%=Request("Company")%><br>
<%=Request("FirstName")%><br>
<%=Request("LastName")%><br>
<%=Request("StreetNumber")%><br>
<%=Request("StreetName")%><br>
<%=Request("Building")%><br>
<%=Request("Region")%><br>
<%=Request("City")%><br>
<%=Request("States")%><br>
<%=Request("Countries")%><br>
<%=Request("PostalCode")%><br>
<%=Request("AreaCode")%><br>
<%=Request("RegionCode")%><br>
<%=Request("PhoneNumber")%><br>
<%=Request("Email")%><br>
<%=Request("SubmitNow")%><br>
</body>
</html>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Multiple Records Using One Insert Statemen with MySQLdb module anton.ranieri.it@gmail.com Python 1 12-06-2008 12:47 PM
insert in std::map does not insert the object simon.elbaz@free.fr C++ 1 11-04-2007 11:42 PM
Insert & Insert/Repeat buttons in a detailsview eagle ASP .Net Datagrid Control 0 07-12-2007 12:47 PM
Detailsview loses insert mode contents when Insert fails... cannontrodder ASP .Net 1 07-25-2006 08:38 AM
DetailsView - Changing to Insert Mode (Not By Using the Insert Button In the DetailsView Control) Feege ASP .Net Web Controls 0 12-20-2005 12:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57