Solved

Insert an entire array into a SQL table

Posted on 2004-04-01
6
289 Views
Last Modified: 2012-05-04
How can I insert an entire array into a SQL table without looping through the Array. I am using VB6 and SQL server 2000 - Thanks!!
0
Comment
Question by:dmwilson34
6 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 10733044
Make a Comma Deleimited Line with all your values

INSERT INTO sal_emp
    VALUES ('Bill',
    '{" & YourLine & "})'
0
 
LVL 9

Expert Comment

by:dancebert
ID: 10733127
Is the array one dimensional?  
Do you want each element of the array to become a record?
Do you want each element of the array to become a field in a record?
0
 
LVL 14

Accepted Solution

by:
CyrexCore2k earned 250 total points
ID: 10735855
If the array is dynamic in size you will have to loop through it.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now