Discussion Locked

Change Table Owner On Access Database

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How do you change the owner on linked tables when the original owner does not exist?? I tried the Linked-Table mangager and get an error that the Microsoft Jet engine could not find the object 'owner_tablename'.

More info:
I have an access database that is made up of close to a hundred linked tables to an Oracle database and many queries, forms, macros, & reports. The owner of the tables when they were linked was owner1. So, my linked tables look like owner1_tablename.

I am trying touse the same database against another Oracle database that has the same table names but where the original owner does not exist.

Is there an easy way to do this? I really don't want to have to relink all of those tables and rebuild all of the queries, etc.

Thanks

5 replies

by emcs

Transfer ownership of an entire database to another administrator

1 Start Microsoft Access using a secure workgroup that contains the user account that you want to own the database and its objects.
2 Log on using that account.
3 Create a new blank database.
4 Import all of the objects from the database whose ownership you want to change into the new database.

Import all database objects from another Microsoft Access database

You can import all of a database's objects into another database at one time. This can be particularly useful if you have created a secure Microsoft Access database and you want to change the database owner.

1 Open the database into which you want to import the database, or switch to the Database window for the open database.
2 On the File menu, point to Get External Data, and then click Import.
3 In the Files Of Type box, make sure Microsoft Access (.mdb) is selected.
4 Click the arrow to the right of the Look In box, select the drive and folderwhere the Microsoft Access database (.mdb) you want to import from is located, and then double-click the database's icon.
5 Click Select All to import all tables. If you want to import just the tables' definitions (not the data they contain), clickOptions, and then, under Import Tables, click Definition Only.
6 Click the Queries tab to display the available queries, and then click Select All to import all queries. If you want to import queries as tables (For example, to create a read-only database) click Options, and then, under Import Queries, click As Tables.
7 For forms, reports, macros, and modules, click the corresponding database object tab and then click Select All. If you want to include relationships, custom menus and toolbars, or import/export specifications, click Options, and then, under Import, select the items you want included. For more information on importing menus and toolbars, click.

dennie

by jeffmarcum

Thanks for trying dennie. It probably would have worked if I hadn't left out one additional piece of info.

I probably should have mentioned that in addition to the owner not existing, the name of the database instance I am connecting to is different as well. And the instance name the original links were made to does not exist in the new environment.

When I tried dennie's suggestion, I got errors during the import. An ODBC error trying to connect to the old instance name.

I created the database at one client's site and am trying to use it at a new clients site. The table names are all the same, but the instance and owner names are different.

by parier

You cant make a copy of that table and add a "1" to th efile name, then delete the current one and then frop the 1. I have had this happen many times, especially when the db is used a lot. REMEMBER to make a backup first.

Hope this helps...

This discussion is closed to new replies.