Toon posts:

Snel textfile inlezen in DB

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoi mensen,

Ik moet voor het werk veeeel tekstfiles automatisch laten converteren naar een access DB.

Momenteel hak ik de tekstfile in stukjes >:) en voeg ze toe aan de DB door:

rst.addnew
rst.fields(1).value = blokje1
rst.fields(1).value = blokje2
.....
rst.update

Dit kan soms erg lang dure (>20000 records)

Ik kan ook INSERT INTO opdrachten laten uitvoeren d8 ik nu. Mijn vraag is of dit snelheids winst oplevert. Ik kan het natuurlijk ook gewoon proberen, maar voordat ik de hele boel omgooi wil ik graag jullie mening/hulp!

Thanx

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Platform / taal / is het CSV, etc.... :?

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


  • kenneth
  • Registratie: September 2001
  • Niet online

kenneth

achter de duinen

Als het een fixed width tekstbestand is, kan je natuurlijk de tabel koppelen dmv een Tekst-ISAM en een koppelspecificatie maken.

Ik gok dat het om Access gaat :)

Look, runners deal in discomfort. After you get past a certain point, that’s all there really is. There is no finesse here.


Verwijderd

Topicstarter
Eigenlijk moet de vraag zijn... Wat is sneller voor toevoegen van data aan een DB:
INSERT INTO..... VALUES(...) vs .addnew .update

  • OZ-Gump
  • Registratie: November 2002
  • Laatst online: 25-08 14:38

OZ-Gump

terug van weggeweest

INSERT INTO, absoluut

My personal website