On Thu, Sep 4, 2014 at 12:44 PM, Virgil Bierschwale <[email protected]> wrote:
> Thanks. > This was pretty massive with about 35 columns and over 400,000 rows at > about > 80 MB, but this will work on some others that I'm putting together. > > -----Original Message----- > From: ProFox [mailto:[email protected]] On Behalf Of Paul Hill > Sent: Thursday, September 04, 2014 12:42 PM > To: ProFox Email List > Subject: Re: [NF] xampp > > On 4 September 2014 18:28, Virgil Bierschwale <[email protected]> wrote: > > But, while doing all of this, I ran across a program that will read in > > the spreadsheet and create a SQL Insert statement for me that works > > even better because there was garbage in the spreadsheet, and doing it > > via VFP, I could program out those errors. > > If the data is not too complex you can do this in Excel. > > Suppose you have 2 columns, A & B. In column C enter a formula: > > ="INSERT INTO xxx (Name,Address) VALUES ('" & A1 & "', '" & B1 & "')" > > Not tested, but I'm sure you get the idea! > --------------- > Why not iterate through your sheet and make a text string for inserting 100 rows at a time and pass that string to the backend? Insert Fo (field list here) values( first row here) union Insert Fo (field list here) values( second row here) your first 2 lines are just solid string values so append the string with them and add in the values() -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajidmyj-08h7zer7w24yvd4rtxfd1wdlzq+a_yyj9cvczsv...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

