Autor Beitrag
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 05.12.05 13:38 
Mal eine Frage an die Oracle-Spezis.
Ich setze [url=www.allroundautomations.com]DOA[/url] ein und mache mit eine TOracleDataSet ein Update-Statement.
Nun würde ich gerne hinterher wissen, wieviel Datensätze von der Änderung betroffen sind.
Hat jemand einen Tipp für mich?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mo 05.12.05 13:43 
Mein Tipp wäre, statt des TOracleDataSet ein TORacleQuery zu benutzen :) Das hat dann ne Property RowsProcessed, die genau das rauswirft. Beim Dataset bin ich aber auch überfragt, ist ja auch eher für Selects gedacht.

_________________
Bravery calls my name in the sound of the wind in the night...
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mo 05.12.05 13:45 
Hallo,

mal ganz dumm gefragt, da ich DAO nicht kenne. Ist ExecSQL eine Funktion oder Procedure? Wenn es eine Funktion ist, dann müsste ExecSQL die Anzahl der geänderten Datensätze zurückgeben. Bei ADO ist es so.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mo 05.12.05 14:09 
Ist eine Procedure.

_________________
Bravery calls my name in the sound of the wind in the night...
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 05.12.05 14:14 
@noidic:
Jo, das war mir soweit klar. Da ich in der Anwendung mit selects und DML-Anweisungen rechnen muss, wollte ich mir sparen, beide Komponenten zu verwenden. Analysieren muss ich das Statement ja sowieso, damit ich weiß, ob ich ein Open oder ein ExecSQL machen muss. Sollte keiner mehr eine Idee haben, werde ich wohl doch beides verwenden müssen. Dann muss ich allerdings einiges im Source umstellen.

@smiegel:
Danke für die Idee. Auf Anhieb hätte ich das auch nicht gewusst. Ich musste das auch erst nachsehen.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mo 05.12.05 14:35 
Kannst du nicht auch für die selescts ne TOralceQuery nehmen? Oder brauchst du die Eigenschaften von TDataset?

Hab nochmal weiter geschaut, mit dem TOracleDataset siehts an der Stelle böse aus.

_________________
Bravery calls my name in the sound of the wind in the night...
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 05.12.05 17:01 
Ich werde das wohl umstellen. Kostet mich zwar 1 bis 2 Stunden, aber mit aller Gewalt rumtricksen ist sicher noch aufwändiger.