Article View: borland.public.cppbuilder.database.ado
Article #2372Re: Advice Please - ADO Archiving
From: Viatcheslav V. Vassiliev
Date: Fri, 05 Sep 2003 16:02
Date: Fri, 05 Sep 2003 16:02
47 lines
2593 bytes
2593 bytes
BTW, you may do your backups with SQL too: 1. Create backup database with ADOX. 2. SELECT * INTO MyTable IN "C:\Backups\2003_04.mdb" FROM MyTable WHERE [Date_Column] < DateSerial(2003, 5, 1) 3. DELETE * FROM MyTable WHERE [Date_Column] < DateSerial(2003, 5, 1) 4. Now you may compact both databases (current and backup). ---------------------------------------------------------------- Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to access MS SQL Server, MS Jet (MS Access) and Interbase (through OLEDB) databases. "Andrew" <alamb@tynetec.co.uk> �������/�������� � �������� ���������: news:3f58916d@newsgroups.borland.com... > Many thanks Viatcheslav, > > That works perfectly and is far quicker than my current method. > > Andrew. > > "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message > news:3f587dfa$1@newsgroups.borland.com... > > Save backups into another Access database, or even you may have one > database > > for every month. Then when your user needs older records you do > > > > SELECT * FROM MyTable IN "C:\Backups\2003_04.mdb" > > UNION > > SELECT * FROM MyTable IN "C:\Backups\2003_05.mdb" > > > > Do not forget to compact database when you place it into backup. > > > > ---------------------------------------------------------------- > > Regards, > > Viatcheslav V. Vassiliev > > http://www.oledbdirect.com > > The fastest way to access MS SQL Server, MS Jet (MS Access) > > and Interbase (through OLEDB) databases. > > >
Technical Details
Message-ID:
<3f58b59a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f584ba5@newsgroups.borland.com> <3f587dfa$1@newsgroups.borland.com> <3f58916d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,94a848929fea2f7a X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-09-05 09:20:05 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3f584ba5@newsgroups.borland.com> <3f587dfa$1@newsgroups.borland.com> <3f58916d@newsgroups.borland.com> Subject: Re: Advice Please - ADO Archiving Date: Fri, 5 Sep 2003 20:02:14 +0400 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.234.218.42 Message-ID: <3f58b59a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062778266 213.234.218.42 (5 Sep 2003 09:11:06 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail