Autor Beitrag
Alexander F
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 149

Win XP, Win 2000
D6 PE, D7 Prof, D8 Prof
BeitragVerfasst: Do 18.03.04 15:36 
Kenne mich leider bisher noch nicht mit Datenbank-Progammierung aus, aber wie kann ich mit D7 über ODBC auf eine DAtenbank zugreifen? Die Treiber usw. sind installiert.
Aadelbert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 90

XP, WIN 2000, NT 4.0
D6 Enterprise
BeitragVerfasst: Fr 19.03.04 10:58 
Hallo Alex,

versuch es mal unter delphi-source.de. Dort gibt es ein Datenbanken-Tutorial: Flexible ADO-Connection.

Mit etwas Tipparbeit klappt der DB-Zugriff

Gruß

Aadelbert
Alexander F Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 149

Win XP, Win 2000
D6 PE, D7 Prof, D8 Prof
BeitragVerfasst: Fr 19.03.04 12:36 
Supi. Werde es mir mal anschauen ;-)
Danke :P
Alexander F Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 149

Win XP, Win 2000
D6 PE, D7 Prof, D8 Prof
BeitragVerfasst: Fr 19.03.04 13:23 
Ich habe mir es noch nicht angekuckt, aber mir ist aufgefallen, dass du was von ADO schreibst, ihc will das allerdings über ODBC machen?!
atarigold
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 84

WIN XP, Linux 2.4
D7, Delphi 2006 Prof
BeitragVerfasst: Fr 19.03.04 14:53 
Hallo
du kannst per ADO auch über ODBC auf Datenbanken zugreifen.

Hierzu kommst du unter ConnectionString (z. B. in der Komponente ADOConnection) mit Klick auf den Button
zu einem "Assistenten" der die weiteren Einstellungen sehr einfach macht.

Hier Verbindung String auswählen und Button Aufbauen anschließend

Microsoft OLE DB Provider for ODBC auswählen. Alles weiteren Einstellungen sind, glaube ich, selbsterklärend.


Allternativ zu ADO kannst du auch die BDE verwenden. Für die erste Datenbankverbindung etwas leichter,
aber mit dem kleinen Nachteil, dass die BDE nicht mehr weiterentwickelt wird.
Alexander F Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 149

Win XP, Win 2000
D6 PE, D7 Prof, D8 Prof
BeitragVerfasst: Fr 19.03.04 18:04 
Danke estmal, ich werde es mal ausprobieren ;-)