Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

How to copy SQL objects (tables, views & procedures) from one schema to another schema in the HANA same server?

$
0
0

Hello,

 

I need to dynamically provision Schema/Catalog, load data, analyze data, generate reports and drop the catalogs/schema from the server. 

 

I got a schema called "MasterCatalog" having 10 tables (most of them are empty), 3 views and 10 stored procedures. 

Now I want to copy the tables and procedures from MasterCatalog to newly created (empty) schema problematically.

First I create an empty schema using "CREATE SCHEMA" statement. Then copy the objects from master catalog to newly created schema.

 

For that, I tried Export & Import SQL commands. Using export command, i tried to export SQL objects onto a local server folder then tried to import the objects into newly created schema.

But it is trying to import SQL objects into the same source schema. There is no provision to specify the target schema on Import statement.

 

Any idea how to copy objects from one schema to another schema on the same server?

 

Regards,

TK


Viewing all articles
Browse latest Browse all 4343

Trending Articles