473,385 Members | 1,838 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,385 software developers and data experts.

insert with SP

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>
Jul 22 '05 #1
0 978

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Howard Hinnant | last post by:
I recently asked for a survey of multimap insert with hint behavior, in support of a paper I'm writing concerning lwg issue 233. My sincere thanks to Beman Dawes, Raoul Gough, Russell Hind, Bronek...
6
by: Mark P | last post by:
Some time ago I posted here about inserting into a set with a hint: ...
14
by: serge | last post by:
I have a scenario where two tables are in a One-to-Many relationship and I need to move the data from the Many table to the One table so that it becomes a One-to-One relationship. I need to...
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
8
by: Carl | last post by:
Hi, I hope someone can share some of their professional advice and help me out with my embarissing problem concerning an Access INSERT query. I have never attempted to create a table with...
4
by: Chris Kratz | last post by:
Hello all, We have run into what appears to be a problem with rules and subselects in postgres 7.4.1. We have boiled it down to the following test case. If anyone has any thoughts as to why...
2
by: Geoffrey KRETZ | last post by:
Hello, I'm wondering if the following behaviour is the correct one for PostGreSQL (7.4 on UNIX). I've a table temp_tab with 5 fields (f1,f2,f3,...),and I'm a launching the following request :...
3
by: MP | last post by:
Hi Posted this several hours ago to another ng but it never showed up thought i'd try here. using vb6, ado, .mdb, jet4.0, no access given table tblJob with field JobNumber text(10) 'The...
6
by: lenygold via DBMonster.com | last post by:
Hi everybody: What is the best way to I have 10 tables with similar INSERT requiremnts. INSERT INTO ACSB.VAATAFAE WITH AA(AA_TIN, AA_FILE_SOURCE_CD, .AA_TIN_TYP) AS ( SELECT AA_TIN,...
1
by: EJO | last post by:
with sql 2000 enterprise Trying to build a stored procedure that will take the rows of a parent table, insert them into another table as well as the rows from a child table to insert into...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.