
How to copy table from DB to DB?
Quote:
> > > Or you can open two workspaces, one for each DB. Then you can copy the table
> > > straight over.
> > But it's the "copy the table" part I'm having trouble with. Can you show an
> > example?
> Remember this doesn't work with ODBC datasources. ODBC can't return any
> information about the tables. It only returns data. Buth with Access tables
> this can work, if you have the proper permissions on the database(read design).
I'm not trying to use ODBC; I'm using Jet (Access) -type databases. What are the
"proper permissions"?Please indicate the method(s) used to "copy the table straight
over."
Quote:
> Either way:
> The table you are copying, does the structure of it change often?
Often enough that I want to encapsulate this task (see below).
Quote:
> If not, make an empty table in your DB which is exactly the same as the one
> you're copying.
This is the part I can't do elegantly!
Quote:
> And then you can only copy records from the DB, with
> som proper recordset variables.
Also, I cannot understand how to do this in VB5 without knowing in advance the
names/types of each field in the database.
To restate my objective: I want to write a procedure that will take as parameters a
tableDef and a database not containing that tableDef and which will copy that table
and its data into the database.
Speed is not an issue, but I want to make an identical clone of the table into the
destination database, including all properties of the table and each field. Something
like using the "Import ..." menu command inside Access.
One potential solution I see might involve Database Replication, but that seems an
overly heavy-handed approach.
--
Dave LaDelfa Electronic Claims Management, Inc.
ICQ: 4977869 http://www.ecmi.net