Autor Beitrag
podi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43

Win XP, Delphi 7,

BeitragVerfasst: Sa 05.08.06 09:21 
Unsere Maschine läuft mit SPS, und sie gibt die Meldungen (Bsp. Störung...) in
einer CSV Datei (ähnlich Excel) weiter.
Kann man mit Hilfe von einem Delphi Programm die Meldungen in eine Datenbank (SQL) ablegen??
Vielen Dank für die Antworten!!

Freundliche Grüsse
Grenzgaenger
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 05.08.06 09:32 
moin podi,

kannst du denn auf die datei, von der maschine, zugreifen? z.b. shared directory?
podi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43

Win XP, Delphi 7,

BeitragVerfasst: Sa 05.08.06 09:49 
Ja kann ich, man kann eine CSV Datei abrufen!!
Aber wie geht es jetzt weiter, jetzt müssen die Dateien in eine Datenbank
abgelegt werden, damit die Mitarbeiter diverse Abragen tätigen können.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 05.08.06 09:49 
Wenn du Zugriff auf die datei hast, ist es kein Problem. Du hast mehrere Möglichkeiten:
-die Verwendung eines CSV-DataSets.
-manuelles Laden der Datei und Zerlegen der Zeilen, z.B. mit Stringliste

Um was für ein DBMS handelt es sich?

_________________
Markus Kinzler.
podi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43

Win XP, Delphi 7,

BeitragVerfasst: Sa 05.08.06 09:55 
My SQL
ist aber noch nicht entschieden!!
podi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43

Win XP, Delphi 7,

BeitragVerfasst: Sa 05.08.06 11:59 
Ich will dir nicht auf die Nerven gehen, jedoch sehe ich bei deinen Antworten, dass
du auf jeden Fall noch mehr weisst!!
Nun habe ich abgeklärt: Es kommt ein SQL Server 2005
Ausserdem gibt es ein Gateway (ein neuer Rechner für das Bearbeiten von den CSV Meldungen; entweder mit WinCC oder einer CSV Konvertierung)
Um letzteres habe ich noch keinen Durchblick:
WinCC könnte die Siemens SPS verarbeiten, wie könnte das eine Konvertierung mittels
CSV-Data Sets, oder gar mit manuellem Laden....und zerlegen mit Stringlisten??
Eventuell Php??

Vielen Dank für die Hilfe!!

Freundliche Grüsse

P.Odermatt
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 05.08.06 12:06 
Ein CsvDataSet ist eine Komponente, welche eine CSV-Datei als TDataset-Abkömmling kapselt. D.H man kann darauf zugreifen, wie auf eine Tabelle innerhalb einer Datenbank.

Mit maulell laden meine ich das Öffnen der CSV-datei als TextFile. Von dieser wird jeweils eine zeile mit ReadLn gelsesen und der Eigenschaft .DelimitedText einer TStringList. dadurch wird die Zeile nach Feldern getrennt, .Items[0] = 1. Feld, .Items[1] = 2.Feld usw. Das zu verwendene Trennzeichen kann mit .Delimiter gesetzt werden.

_________________
Markus Kinzler.
podi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43

Win XP, Delphi 7,

BeitragVerfasst: Sa 05.08.06 12:09 
Wie teuer wäre denn so ein CSV -Datasets, ist dieses Programm zu empfehlen?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 05.08.06 12:10 
Die JVCL enthält eines. Diese Komponentensammlung is OS.

_________________
Markus Kinzler.
podi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43

Win XP, Delphi 7,

BeitragVerfasst: Sa 05.08.06 12:15 
Ok! Vielen Dank und noch ein schönes Wochenende!!