Solved

Insert an entire array into a SQL table

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

726 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