Steve Geard

Steve Geard

  • NA
  • 4
  • 0

Simple beginners question

May 12 2010 10:04 PM

I have created a string array by parsing a long CSV string (read from a .csv file) into its elements (i.e. the bits that are actually seperated by commas). I now wish to add those elements to an SQL Server 2005 database table that I have already created for that purpose.
Can someone please point me at a simple example of how to loop thru the array and add the elements to the appropriate fields of a database.
I am using Visual Studio 2008, C#.NET.
Thanks.
 

Answers (5)