Autor Beitrag
löschi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: Sa 08.02.03 22:12 
hi ,
greife auf mysql mit ado(odbc) zu. arbeite mit win2000.

mein prob.: hab jetzt mysql auf nt installiert und die database in mysql kopiert(datei). nun kommt wenn ich mit der anwendung auf mysql zugreife ein syntxerror.

darf mann einfach die database kopieren?
fehlt irgendetwas?

auf meinem rechner geht es(2000). auch wenn ich mit meiner anwendung auf die datenbank des nt rechners zugreife(netzwerk)

löschi
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: So 09.02.03 11:03 
Hi,

machst Du das mit dem Programm was bei MySQL dabei ist oder mit einem eigenen Programm ? Was für ein Fehler kommt denn ?
löschi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: So 09.02.03 11:33 
hi rolf;

ich mach das mit meinem eigenen prog, habe dazu eine adoconnection genommen, mit einer adoquery frage ich die daten ab. nur beim einfügen gibt es probleme.

genauen wortlaut hab ich nicht , weil der rechner woanders steht, bei meinem gehts ja. ist irendwas mit syntaxrror near (NAME) usw. hab ma einen kleinen auszug aus der query:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
3:if adoquery4.FieldByName('status').asstring = '3' then begin // status3 einfügen
  abort // nur einmal drücken
  end  else begin
  adoquery4.Edit;
  if adoquery4.FieldByName('ein').asstring <> '' then begin
  adoquery4['aus']:= time;
  adoquery4['ein'] := '';
  end;
  adoquery4['status']:= '3';
  adoquery4['uhrzeit'] := now;

  adoquery4['status1']:= '';
  adoquery4['status2']:= '';
  adoquery4['status3']:= time;
  adoquery4['status4']:= '';

adoquery4.post;

gruß lars

Moderiert von user profile iconTino: Code-Tags hinzugefügt.
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Mo 10.02.03 02:54 
Also irgendwie verstehe ich Deinen Code-Schnipsel überhaupt nicht, da fehlt irgendwie noch etwas. Dann die andere Frage, warum gehst Du über die ADO-Komponenten auf eine MySQL-Datenbank. Ich kann mich entsinnen irgendwo mal gelesen zu haben, dass das nicht gerade ratsam wäre wegen der Performance.

Was mir noch zum Schluß einfällt, hast Du auf dem anderen Rechner vielleicht keinen MDAC installiert ?
löschi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: Mo 10.02.03 09:06 
hi rolf,
ado deswegen weil die anwendung vorher mit access lief, eine umstellung auf zeos nicht funzte, siehe anderen thread.

codegschnipsel ist gut :lol: ist ja auch nur ein auszug : aber ich habe da was gefunden, werd es ma ausprobieren. hat was mit den feldern von time und datetime zu tun. sollten auch in hochkommas gesetzt werden

gruß Lars

P.S. deine anleitung zu zeos funzte bei mir nicht;konnte wieder irgentwelche dcu's nicht finden
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Mo 10.02.03 15:04 
Das verstehe ich zwar nicht ganz, mit den Zeos, aber wenn Du meinst.
löschi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 44



BeitragVerfasst: Mo 10.02.03 15:16 
mist, geht alles nicht :(