Solved

Insert .CSV file into a MYSQL database

Posted on 2009-07-06
1
516 Views
Last Modified: 2013-11-10
I'm grabbing some system stats (every 10 minutes)from a server which i'm importing into a .CSV file. This file is then collected and moved to another computer.

What I now want to do is have a scheduled task that runs a VBScript that inserts the data from the .CSV file(s) into a MYSQL database.

So what i'm after is a script that will look in a folder for any .csv files, insert them into a table in my database and then delete the .csv file from the folder.

Only problem is i'm not sure how to approach this. I'm guessing VBScript is the best way to go for this as I want to run it as an automated task.

Does anyone have any better ideas for what i'm wanting to do or anyone able to help with the coding?
DiskSpace-20090703.csv
0
Comment
Question by:burnoutuk
1 Comment
 

Accepted Solution

by:
burnoutuk earned 0 total points
ID: 24799654
Ok, as a simple request.

How in vbscript would I insert data from a .CSV file into a MYSQL database?
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now