Search found 9 matches

by sforsythe
Tue Dec 23, 2014 9:01 pm
Forum: General Discussion
Topic: SQL count to variable
Replies: 2
Views: 11621

Re: SQL count to variable

Dataset Loop seems to work (but don't really need a loop) the result is a single value. Now having problems with variables in the SQL statement. The insert statement works: INSERT into Lake_Test(fDate, fTime, fTemperature) values('{vDate}','{vTime}',{line(3)}) But the select statement returns "...
by sforsythe
Tue Dec 23, 2014 8:05 pm
Forum: General Discussion
Topic: SQL count to variable
Replies: 2
Views: 11621

SQL count to variable

I need to check the data in a file to see if it exists in the database and insert the records that don't. The data is "Date", "Time", and "Temperature" and I need to see if there is already a record in the database for the "Date" and "Time" of each l...
by sforsythe
Thu Dec 18, 2014 7:26 pm
Forum: General Discussion
Topic: Get File DateTime
Replies: 2
Views: 12804

Re: Get File DateTime

Don't need this now. Just renaming from FILE.CSV to FILE{Year}{MonthNo}{Day}{Hours}{Minutes}.CSV. The Timestamp on the file is preserved.
by sforsythe
Thu Dec 18, 2014 7:24 pm
Forum: General Discussion
Topic: FTP preserve file datetime
Replies: 2
Views: 10438

Re: FTP preserve file datetime

FTP Sync works using remote to local.
by sforsythe
Thu Dec 18, 2014 7:11 pm
Forum: General Discussion
Topic: Get File DateTime
Replies: 2
Views: 12804

Get File DateTime

Is there a way of getting the DateTime of a file? I have to download a file on a remote system that I have no control over and is updated every 30 minutes (the name doesn't change, just new time stamp). When I download the file I want to rename it to include the DateTime (i.e. FILE.CSV would become ...
by sforsythe
Wed Dec 17, 2014 6:39 am
Forum: General Discussion
Topic: FTP preserve file datetime
Replies: 2
Views: 10438

FTP preserve file datetime

How do you preserve the file datetime when downloading a file using FTP Download?
by sforsythe
Tue Dec 16, 2014 7:59 pm
Forum: General Discussion
Topic: parse a csv file and insert or update SQL database table
Replies: 2
Views: 11512

Re: parse a csv file and insert or update SQL database table

awesome, thanks for such a quick response. I'll give it a go later today.
by sforsythe
Tue Dec 16, 2014 11:15 am
Forum: General Discussion
Topic: parse a csv file and insert or update SQL database table
Replies: 2
Views: 11512

parse a csv file and insert or update SQL database table

I have receive a csv file (ftp download every 30 minutes) that contains temperature reading at 15 minute intervals (the first 2 lines and the last lines are blank). The reading are for the last 7 days but I only need to load any readings I don't already have, in to the database table. The reason for...
by sforsythe
Fri Dec 12, 2014 10:39 pm
Forum: General Discussion
Topic: How to check for FTP File Exists
Replies: 1
Views: 8564

How to check for FTP File Exists

Sorry this may have been asked before, but I can't find it. I need to check a remote ftp service for a particular file. When I use the "FTP File Loop" task if I put the file name in the "Remote Folder and File Mask" box it doesn't find the file (welcome.msg). But if I put *.msg i...