Autor Beitrag
HotLaps
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Do 12.12.02 14:52 
Hallo!

Ich arbeite mit Delphi 7 Enterpise und einer Oracle 8.1.7 Datenbank. Auf die DB greife ich mittels BDE, einen Oracle nativ Treiber zu.

Wie kann ich jetzt in Dephi ein Statement absetzen, dass keine Datenmenge zurückliefert. Gibt es eine Möglichkeit ein Statement direkt abzusetzen.

Ich möchte gern aus einer Delphi Anwendung heraus, das Passwort eines Oracle Users ändern mit "ALTER USER ..." .

Gibt es eine andere Möglichkeit, außer eine StoredProcedure aufzurufen?
Kann diese StoredProcedure auch eine Function sein?
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Do 12.12.02 15:21 
Hi
um einen SQL-Befehl abzusetzen, verwendest du generell TQuery. Liefert das SQL-Statement eine Ergebnissmenge verwendest du zum Aktivieren TQuery.Active := True, bei SQL ohne Erebnismenge TQuery.ExecSQL.

Eine StoredProcedure kann auch Ergebnisse zurückliefern.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
HotLaps Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Do 12.12.02 15:23 
Danke LCS!

Hast du schon einma versucht ein TQuery mit
ALTER USER "xxx" IDENTYFIED BY "yyy" auszuführen?
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Do 12.12.02 15:32 
Hi
Nein, nie gehört bzw. probiert. Zum Standardumfang von SQL gehört's auf jeden Fall nicht und so wahnsinnig viel Erfahrung mit Oracle hab ich leider auch nicht.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
HotLaps Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Do 12.12.02 15:34 
Ja, super!
Aber genau das war meine Frage!

Das ich ein SELECT, INSERT, UPDATE usw. mit TQuery machen kann, ist mir schon klar.
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Do 12.12.02 15:39 
Sorry, hab ich überlesen :oops: Aber wenn's ein Statement ist, das Oracle versteht, seh ich keinen Grund warum es nicht funktionieren sollte. Vorausgesetzt dass du bei den BDE Einstellungen SQLQRYMODE = SERVER verwendest. Aber das ist eigentlich Standard.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...