🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1570

Re: copy tables between databases in access 2000

#1570
From: Viatcheslav V. Vassiliev
Date: Wed, 19 May 2004 06:10
36 lines
2273 bytes
SELECT * INTO [DstTable] FROM [SrcTable] IN "C:\Temp\Src.mdb"

You will need to recreate all indeces and relationships manually. Another
solution is to compact (or just copy) old db file into new one.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"siraj" <siraj.sm@omnisens.ch> �������/�������� � �������� ���������:
news:40aa4d8e@newsgroups.borland.com...
> Hi!
>  I use ADO components to connect to MS Access 2000 . I am using c++
builder
> 5.
> Periodically I have to create new databases  and copy some tables along
with
> the data  from the old
> database to the new database.  The old database and the new database are
> identical in structure. I create new access 2000 database using the
> components derived from importing the type library "Microsoft ADO Ext. 2.6
> for DDL and Security".
> How can i copy the tables from one access 2000 database to another access
> 2000 database?
> I have to even copy the relationships between the tables and their data
and
> overwrite the empty tables in the new database.
>
> Regards,
> siraj
>
>
Technical Details
Message-ID: <40aafa4c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40aa4d8e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,ada5c065ec93594c
X-Google-Attributes: gid10698b,public
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40aa4d8e@newsgroups.borland.com>
Subject: Re: copy tables between databases in access 2000
Date: Wed, 19 May 2004 10:10:22 +0400
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.234.218.42
Message-ID: <40aafa4c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084947020 213.234.218.42 (18 May 2004 23:10:20 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail