473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Populating a database with an array

So i have some data in an 1 dimensional array, is it possible to dump this data into a database?
Aug 22 '11 #1
4 1189
Yes

(pseudocode)

Call your string "foo"

Expand|Select|Wrap|Line Numbers
  1. Dim l as integer ' holds the string length
  2. Dim c as integer ' used for a loop
  3.  
  4. l = String.Length(foo)
  5.  
  6. 'open sql, test it's good and if it is...
  7. for c = 0 to l
  8. Insert foo[l] into footable
  9. next c
  10.  
Aug 22 '11 #2
i dont understand ur code? =/
Aug 22 '11 #3
The code is psuedocode (in otherwords, gives you the idea, but won't work by itself). The line l = String.Length(foo) can be ignored (my bad)

Start the loop at 0
Insert the first member of the array into the database (insert <data> into <datatable>)
Next loop

I'm assuming you're connection to the database is fine
Aug 22 '11 #4
thanks for ur help, but dw, i managed to find a way to dump my data into excel, sorry for the hassle.
Aug 22 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: David P. Jessup | last post by:
Background info: I'm attempting to populate an array with specific column numbers from a database. I have another array(from a linked table) that has matching column names from the original...
6
by: richard.pasco | last post by:
Hey all I am trying to write a script that allows users to search through a database of names. But rather than give a search string and then return all those that match, I would like it to...
4
by: MW | last post by:
How can I poplute a javascript array from vb.net? I would prefer to do this from codebehind. Michael
1
by: Wayne Wengert | last post by:
I have a class that defines an array (JudgeTableEntity) which contains sets of data (Judge) - see class below. I want to put several sets of test data in the array but cannot find the syntax to do...
2
by: Michael R. Copeland | last post by:
I can't to get the syntax of array declarations to work. The "TCX" declaration compiles without error, but the data does not get into the array. The "tcx" declaration produces a compile error...
27
by: Cleverbum | last post by:
I currently have a list of md5 strings and need to check if a new string is in that list hundreds of thousands of times. I've found that the fastest way to do this is to have all the md5's stored...
2
by: Bern McCarty | last post by:
In the old MEC++ syntax I can do this: // compile in VS 2005 shell with cl -clr:oldsyntax -LD ArrayCopyOldSyntax.cpp #using <mscorlib.dll> public __gc class CopyTest { private:...
3
by: 3321thec | last post by:
I was wondering how i would populate an array with all of the rows in a certain column of the database? I.E. Test_Column -------------------- 125 1.25 152 1.02
4
by: Peter Duniho | last post by:
On Thu, 14 Aug 2008 18:56:00 -0700, Phill <Phill@discussions.microsoft.comwrote: For future reference, if you are asking for help with an error (compile or execution), you really should post...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.