If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Multiple Insert into DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-03, 00:02
Yusrin Yusrin is offline
Registered User
 
Join Date: Jun 2003
Location: Singapore
Posts: 20
Question Multiple Insert into DB

I hv a SQL server table 'spmidishad'. Theere are 7 columns. One of it is Partner.

Well, my searchresults.asp displays all the records retrived from my database (spmidishad). At the end of one row, there is a checkbox. Once a few is checked, i will press on the IMPORT button. This import button (the form action is from import.asp)
is to import (insert) all the checked records into the database.. All rows inserted (the data) are the same except for the Partner column..

Well, i want someone who can help me to figure out how I am suppose to do this..? Hope u understand what Im talking about here... Thankx..
Attached Files
File Type: txt searchresults.txt (18.7 KB, 51 views)
Reply With Quote
  #2 (permalink)  
Old 07-15-03, 11:09
Chewie Chewie is offline
Registered User
 
Join Date: Jul 2003
Location: Albany, NY
Posts: 3
Yusrin, I'm not sure if I understand your questions, but...

I would suggest you loop through the Request.Form object gathering up the checked items from your form. Inside that loop, you can do an SQL INSERT for each item that was checked, and bingo, you're all set.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On