Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Add Multiple Column Entries to Database Table at 1 time

Add Multiple Column Entries to Database Table at 1 time


I am looking to add multiple column entries to existing database table by way of script, i.e.;

Column1-- Column2-- Column3-- Column4

12345----- Testing---- Testing---- Testing

How can I repeat/input this exact data for 500 rows in a single script?

The End User will be using a form with 4 textboxes followed by a submit button. txtbox1 = Column1, and so on...
Lets say Column4 holds a value of qty. which will equal the total amount of rows I would like added to the table, any idea how i could accomplish this?

Feel free to ask any questions you may have

Thanks in advance!

RE: Add Multiple Column Entries to Database Table at 1 time

Ok, I do have a question. What have you tried so far?

An unforeseen consequence of the information revolution has been the exponential propagation of human error.

RE: Add Multiple Column Entries to Database Table at 1 time

'12345' AS Column1
,'Testing' AS Column2
,'Testing' AS Column3
,'Testing' AS Column4
FROM sys.all_objects

I have someone from another forum helping me out and he gave me this script, which does insert the data just as I needed but I will have to figure out how to program this script to correlate with tex boxes and a control in

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close