[DELPHI] table read only?

Pagina: 1
Acties:

  • ThePriest
  • Registratie: Mei 2000
  • Laatst online: 30-01-2024

ThePriest

the one, the only

Topicstarter
Ben hier bezig met een programmaatje dat via ODBC een MS Access database moet wijzigen. Zogauw ik de SQL query component heb gevuld met de INSERT-query en de boel op active gooi zegt hij "table is read only". In Access gaat deze query wel prima en alles (ook de database component op het Delphi formpje) staat niet op read-only. Iemand een idee waar ik kan kijken?

Thanks

  • brammetje
  • Registratie: Oktober 2000
  • Laatst online: 12-01-2025
je hebt niet per ongelijk access nog open staan?

  • ThePriest
  • Registratie: Mei 2000
  • Laatst online: 30-01-2024

ThePriest

the one, the only

Topicstarter
Nope, da's 't niet...

  • RickN
  • Registratie: December 2001
  • Laatst online: 14-06-2025
Wat doet je insert query, want vaak is het handiger om een updateSQL component te gebruiken, dat kan haast niet fout gaan.

He who knows only his own side of the case knows little of that.


Verwijderd

Afhankelijk van hoe je het precies doet zou het de 'request live' propertie van de TQuery kunnen zijn. Anders zou het ook nog kunnen dat de odbc koppeling read only is, vaak moet je specefiek opgeven wat voor 'open mode' er gebruikt word ander kan het zijn dat hij readonly is.

Hoop dat je er iets mee kan.

  • Tomatoman
  • Registratie: November 2000
  • Laatst online: 00:04

Tomatoman

Fulltime prutser

Uit Delphi Help:
Call ExecSQL to execute the SQL statement currently assigned to the SQL property. Use ExecSQL to execute queries that do not return a cursor to data (such as INSERT, UPDATE, DELETE, and CREATE TABLE).

Een goede grap mag vrienden kosten.


  • ThePriest
  • Registratie: Mei 2000
  • Laatst online: 30-01-2024

ThePriest

the one, the only

Topicstarter
Op dinsdag 29 januari 2002 16:31 schreef tomatoman het volgende:
Uit Delphi Help:
[..]
Itsmeagain: thanks, dat was 't niet, maar tomatoman: heel fijn, dat was de oplossing! bedankt!
Pagina: 1