Thema: Delphi SQL: Index hinzufügen

Einzelnen Beitrag anzeigen

Gambit

Registriert seit: 28. Mai 2003
680 Beiträge
 
Delphi 7 Professional
 
#1

SQL: Index hinzufügen

  Alt 14. Sep 2004, 12:48
Moin,

folgende Anweisung funzt nicht:
Delphi-Quellcode:
Query.close;
Query.SQL.Text:='ALTER TABLE myTable ADD INDEX TitleIndex (titel)';
Query.ExecSQL;
Da bekomm ich ne Exception: File must be opened exclusively

Wie gehts denn richtig?

Gruß

Gambit
  Mit Zitat antworten Zitat