On Wed, 27 Jan 2010 12:53:01 -0800, Jess <(E-Mail Removed)>
wrote:
>I have an Access application whose tables are linked to a remote SQL server
>database –the data resides in SQL server. I do not have control over the
>backups.
>
>
>I would like to create an Access database (a new database) whose tables are
>local –reside in Access- and contain all the data in the linked tables. This
>database should also contain the other databases objects: forms, modules,
>reports, etc.
>
>Is there an easy way to accomplish this?
I agree with Pieter that this is probably wasted effort: unless your SQL DBA
is extraordinarily inept, s/he should have the data thoroughly backed up
already! However, I do know that SQL DBA's can be hard to communicate with
(I've been one, briefly... <shiver>)...
What you can do is create a new Access database. Link to the ODBC connection
to your SQL server. You can select each table (one at a time), Copy it, and
Paste; when you paste, select "Design view only" and specify a new name (if
your linked tables all start with dbo you can simply omit that).
It should be possible to automate this process by looping through the
Tabledefs collection but it would be more code than I'd be comfortable dashing
off untested, and more time than I'd want to spend on a donated-time basis
writing it and testing it.
--
John W. Vinson [MVP]
|