Autor Beitrag
Sprotti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mi 14.09.05 09:40 
Hallo,
ich möchte ein gefülltes Dataset kopieren.

Hier die Situation:
- Klasse DBConnection hat ein TDataSet.
- Das wird über 'ne TSQLQuery gefüllt.
- Die Füllung möchte ich einem bestimmten Topic zuordnen also hat class Topic auch ein TDataSet.
- Jetzt soll das Set in Topic (Copykonstruktor oder sowas?) eine Momentaufnahme des DataSet aus DBConnection werden.

hat jemand schon mal sowas gemacht oder weiß wie es gehen könnte?
vielleicht gibts ja auch ne bessere Lösung
grüße Sprotti
Sprotti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Do 13.10.05 08:25 
hat denn niemand eine Idee dazu?
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 13.10.05 08:30 
Da du mit SQL arbeitest, solltest du dir mal den Befehl:
ausblenden SQL-Anweisung
1:
Insert into <Zieltabelle> Select <Feldliste> from <Quelltabelle> where ...					


Es gibt auch andere Möglichkeiten, aber das sollte die schnellste Variante sein.
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Do 13.10.05 10:04 
ich hab das leider nicht so 100% kapiert was du wolltest, hilft dir vielleicht TClientDataset weiter?
Damit kannst du sonne Art Snapshot machen und den später wieder mit dem Server syncronisieren.

Bitte verschiebe den Beitrag in den Bereich "Datenbanken".