I have an existing Linked Server with a few catalogs… how can I add another, existing database/catalog to this linked server?
For Example, my object explorer looks like this:
Linked Servers
- Providers
- DB4\PRODUCTION
- DB4_LINK
- Catalogs
- System Catalogs
- MyDatabase
- MyOtherDatabase
- Catalogs
How can I add yet another database that already exists to DB4_LINK?
EDIT: I’m trying to add an existing database to this linked server entry.
You can do this by sending dynamic SQL via the linked server:
Of course this requires that you have the permissions to do so, and it’s a simplistic command assuming that the default settings are fine – you may want to customize the
CREATE DATABASEcommand.