473,473 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Multiple Insert Help...

I have a page that will populate information from a "reference" table
in the DB (SQL) like this:

sku qty
123 10
111 10
222 10
333 10
This information will be different each time the page is visited based
on the variable they submit. So next time it may show 20 records. My
question is how would I go about inserting this data to the DB? Can
anyone point me in the right direction to get me started?

Nov 9 '07 #1
2 1528
Mangler wrote on 09 nov 2007 in microsoft.public.inetserver.asp.general:
I have a page that will populate information from a "reference" table
in the DB (SQL) like this:

sku qty
123 10
111 10
222 10
333 10
This information will be different each time the page is visited based
on the variable they submit. So next time it may show 20 records. My
question is how would I go about inserting this data to the DB? Can
anyone point me in the right direction to get me started?
Use a <formto send the data to the server.
Name the elements of the formm logically by clientside script,
allowing the user to enter a dynamic number of lines [records] composed of
two fields.

Receive the data using a serverside loop and drop each line [record] into
the database.

That's all.

Now go and experiment.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 9 '07 #2
On Nov 9, 10:23 am, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
Mangler wrote on 09 nov 2007 in microsoft.public.inetserver.asp.general:
I have a page that will populate information from a "reference" table
in the DB (SQL) like this:
sku qty
123 10
111 10
222 10
333 10
This information will be different each time the page is visited based
on the variable they submit. So next time it may show 20 records. My
question is how would I go about inserting this data to the DB? Can
anyone point me in the right direction to get me started?

Use a <formto send the data to the server.
Name the elements of the formm logically by clientside script,
allowing the user to enter a dynamic number of lines [records] composed of
two fields.

Receive the data using a serverside loop and drop each line [record] into
the database.

That's all.

Now go and experiment.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Thank you. Thats all I was looking for bc if I know the process like
you provided I can play with the rest trying to make it work. Helps
me learn better although it gets frustrating sometimes. As always man
thanks!

Nov 9 '07 #3

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

Similar topics

3
by: jason | last post by:
How does one loop through the contents of a form complicated by dynamic construction of checkboxes which are assigned a 'model' and 'listingID' to the NAME field on the fly in this syntax:...
0
by: Michael Schoen | last post by:
Hi there, i=B4m actually developing a performance criticial system where I need to index a huge amount of protocoll data. These data are already in a chronological order, so if I push the data...
2
by: Sashi | last post by:
Hi, I'm trying to insert multiple rows with the following statment and am getting a syntax error on line 3. The datatypes are varchars except for status which is numeric. insert S (S#, SNAME,...
2
by: grigno | last post by:
Hi, I have to execute an insert like this: INSERT INTO TAB1 (F1, F2) SELECT (?), F2_T FROM TAB2 The field F1 of TAB1 is the primary key of my table and is not auto-increment.
2
by: Asha | last post by:
greetings, i'm doing a multiple insert into the db through a store proc. i'm very sure the sp has nothing wrong. below are my implementation code and error msg. thanks in advance for the help ...
1
by: nicholas | last post by:
Where can I find a good tutorial on how to insert/update MULTIPLE rows into a database on an SQL2000 server ? In VB !! (not C#) THX
2
by: tpafr | last post by:
Hi, I would like to insert multiple rows in an Access DB from a datagrid (or a txt file) It is very slow for large number of insertions(5000 -> >30 seconds !). Is there another way to do this ...
1
by: wesley | last post by:
Can i make multiple inserts into a table using one statement. the statement: INSERT INTO table1 (UserName) VALUES (SELECT DISTINCT UserName FROM table2) Basically, i want to take out all the...
1
by: clayalphonso | last post by:
Here is the code: <% dim testArray, testArray2 dim Conn, rs dim sSQL, sConnString 'response.write request.form("sel1") 'testArray = split(request.form("sel1"),",") 'for each gidstuff In...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.