Solved

Insert an entire array into a SQL table

Posted on 2004-04-01
6
291 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 42
VBA to copy paste columns form one file to other 20 87
Updates not working for MS Windows 7 12 164
message box in access 4 46
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

786 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