Ich hatte mal eine ähnliche Sache und muß sagen, daß die Performance mit dem geöffneten Recordset wesentlich schneller war (ging um einige Tausend Datensätze) also deine "ausserhalb"-Version.
Grüße, Ingo -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Mike Unckel Gesendet: Montag, 24. Februar 2003 09:40 An: [EMAIL PROTECTED] Betreff: [Advanced.asp] saubere Programmierung? Hallo, ich habe eine Frage zur Performance oder besser gesagt zur 'sauberen Programmierung'. In eine Schleife schreibe ich Daten in eine DB. Nur einmal öffne und schließe ich das RecortSet in der Schleife und das andere mal erst außerhalb. Beides funktioniert. ' Außerhalb rs.Open "SELECT * FROM Tab", Conn for i=0 to cnt rs.Addnew rs("Text").Value = Text rs.Update next rs.Close ' oder ' Innerhalb for i=0 to cnt rs.Open "SELECT * FROM Tab", Conn rs.Addnew rs("Text").Value = Text rs.Update rs.Close next Was ist besser? Gruß Mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~ Ein flexibles CMS für lau? ATTACK! Download Intrexx CRM-Studio Now! http://www.intrexx.com _______________________________________________ Advanced.asp mailing list [EMAIL PROTECTED] http://www.glengamoi.com/mailman/listinfo/advanced.asp ~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~ Ein flexibles CMS für lau? ATTACK! Download Intrexx CRM-Studio Now! http://www.intrexx.com _______________________________________________ Advanced.asp mailing list [EMAIL PROTECTED] http://www.glengamoi.com/mailman/listinfo/advanced.asp