Ask a Question related to ASP Database, Design and Development.
-
Steph #1
FTP Text to DB
Hi and thanks in advance.
I'm looking for some help for the following;
A text file needs to be FTP'd to a site and then the contents of that
txt file needs to be inserted into a db, either on the fly or at a set
time.
The part I'm having probs with is the inserting the txt contents into
the db. The txt file will always be the same format and data within will
change. Old data can be wiped out as the new txt will have all the
current info.
eg of txt file: (this is not the real data but for arguemant sacks, lets
say it is.)
ProdName
ProdDescription
Price
SalePrice
DB will either be MS Access or MySQL. I've not yet decided until I see
the data and know the size.
The question is, can someone point me in the right direction? I seem to
be going round in circles with no answer to show for it.
Cheers
Steph.
Steph Guest
-
Coursebuilder - 5 text areas for 5 possible scores. Eachpossible answer has its own text area
I'm trying to build an inventory form that has different point values for each possible answer for a particular question. there will be 5 possible... -
Text edit functions not working for text entry fields onMAC
In all the text-entry fields - one cannot cut, copy, paste, nor perform other normal text edit functions on MAC using Firefox. Any idea about the... -
current selected text to highlighted text on mouse up event through java script
hi everybody, I want to convert the current selected text to highlighted text i.e. to yellow background on mouse up event on pdf form through... -
Error: content type of 'text/html; but expected 'text/xml'.
Hi, I've created a webservice, which is working fine in development environment and UAT environment. but i received following error often in... -
text field including text from a text file *.txt
Hi, I would like to insert a text field which includes text from a text file. I know it must be possible but unfortunately I cannot find any help... -
Larry Rekow #2
Re: FTP Text to DB
On Wed, 11 Aug 2004 12:44:18 +1000, Steph <steph@scartdesign.com.au>
wrote:
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++>Hi and thanks in advance.
>
>I'm looking for some help for the following;
>
>A text file needs to be FTP'd to a site and then the contents of that
>txt file needs to be inserted into a db, either on the fly or at a set
>time.
>
>The part I'm having probs with is the inserting the txt contents into
>the db. The txt file will always be the same format and data within will
>change. Old data can be wiped out as the new txt will have all the
>current info.
>
>eg of txt file: (this is not the real data but for arguemant sacks, lets
>say it is.)
>
>ProdName
>ProdDescription
>Price
>SalePrice
>
>DB will either be MS Access or MySQL. I've not yet decided until I see
>the data and know the size.
>
>The question is, can someone point me in the right direction? I seem to
>be going round in circles with no answer to show for it.
>
>Cheers
>Steph.
I do this a lot. i set up a script that automatically ftp's a text
file to a location on a web server. I link the text file as a table
in an access d/b. Every time the file is ftp'd, it over writes the
previous file, and the data is therefore automatically updated.
The key to it all is to link the file and not import it.
Larry Rekow
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
Larry Rekow Guest
-
Steph #3
Re: FTP Text to DB
God dam!!!!
Here I was looking at all these wiz bang ways and it's that simple.
I need to simplify my thinking, but when searching the net, it's easy to
lose site of the true goal.
Thanks heaps for that too.
Cheers
Steph.
Larry Rekow wrote:> On Wed, 11 Aug 2004 12:44:18 +1000, Steph <steph@scartdesign.com.au>
> wrote:
>
>>>>Hi and thanks in advance.
>>
>>I'm looking for some help for the following;
>>
>>A text file needs to be FTP'd to a site and then the contents of that
>>txt file needs to be inserted into a db, either on the fly or at a set
>>time.
>>
>>The part I'm having probs with is the inserting the txt contents into
>>the db. The txt file will always be the same format and data within will
>>change. Old data can be wiped out as the new txt will have all the
>>current info.
>>
>>eg of txt file: (this is not the real data but for arguemant sacks, lets
>>say it is.)
>>
>>ProdName
>>ProdDescription
>>Price
>>SalePrice
>>
>>DB will either be MS Access or MySQL. I've not yet decided until I see
>>the data and know the size.
>>
>>The question is, can someone point me in the right direction? I seem to
>>be going round in circles with no answer to show for it.
>>
>>Cheers
>>Steph.
> ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++
> I do this a lot. i set up a script that automatically ftp's a text
> file to a location on a web server. I link the text file as a table
> in an access d/b. Every time the file is ftp'd, it over writes the
> previous file, and the data is therefore automatically updated.
>
> The key to it all is to link the file and not import it.
>
> Larry Rekow
> - - - - - - - - - - - - - - - - - -
> "Forget it, Jake. It's Chinatown."Steph Guest
-
John #4
Re: FTP Text to DB
If you link the TXT as a table, then you must upload the whole table with
all the products??
And if you do so, and the txt have always the same format, why not opening
the TXT in ado directly?
I upload only the updated products (in xml format), run every 15 mnutes a
script in Cron, update the db.
You can use 1 txt for 1 product or all the updated product in 1 file
My txt looks like:
<product>
<action>A</action> (can be D for Delete, A for add, U for update)
<productId>109</productId>
<productName>Cheese<productName>
.....
</product>
John
John Guest



Reply With Quote

