Do I have to reapply for grants and synonyms. Edit rename them to another scheme

Hello

We follow the process to replace some tables in UAT/PROD with the new table structure.

Thus, for example, A table in a schema:

Step 1 - create a TableA_NEW with the necessary structure and walls.
Step 2-Insert into TableA_NEW select * from TableA.
Step 3-Alter Table TableA rename TableA_OLD - take backup from TableA
Step 4 - Alter Table TableA_NEW and rename the TableA - change the new ti from table Table of origin

Now should I reapply all grants and synonyms initially applied to TableA.
When I test in Dev, all grants and synonyms still stands. But I can't take any chances for UAT/PROD.

Also when I restore these changes and rename the tables back to the original table.
So should I reapply all grants and synonyms initially applied to TableA.


Please suggest...

user8941550 wrote:
Hello

We follow the process to replace some tables in UAT/PROD with the new table structure.

Thus, for example, A table in a schema:

Step 1 - create a TableA_NEW with the necessary structure and walls.
Step 2-Insert into TableA_NEW select * from TableA.
Step 3-Alter Table TableA rename TableA_OLD - take backup from TableA
Step 4 - Alter Table TableA_NEW and rename the TableA - change the new ti from table Table of origin

Now should I reapply all grants and synonyms initially applied to TableA.
When I test in Dev, all grants and synonyms still stands. But I can't take any chances for UAT/PROD.

Also when I restore these changes and rename the tables back to the original table.
So should I reapply all grants and synonyms initially applied to TableA.

Please suggest...

Step 1 - create a TableA_NEW with the necessary structure and walls. New table - has no subsidies
Step 2-Insert into TableA_NEW select * from TableA.
Step 3 - Alter Table TableA and rename TableA_OLD - take backup of TableA Renamed table maintains subsidies. At this point invalid synonym
Step 4 - Alter Table TableA_NEW and rename the TableA - changing new technology table original Table new table still has no subsidies, valid synonym now

Thus, subsidies disappear, but means will be valid at the end of the process.

Tags: Database

Similar Questions

Maybe you are looking for

  • HP pavilion slimline: windows 10

    I downloaded windows 10, but my husband and I have are own page or the screen if you want and I can not find mine now, if someone could help me with this or do I need to reset to Windows 7?

  • HP dv6t 3100 laptop does not turn on (but the light)

    Hello... My laptop battery 3100 dv6t has is not good enough. It doen't take the load. Power goes off when the laptop on. Suddenlty it will turn off and now I can not turn on. But the charging light turns red for about 1 minute and it turns white afte

  • I can't watch the custom action

    I use Microsoft Dynamics Nav 2015.When I create my custom action, I can listen to samples, but when I run the page it desapears.

  • number of unread e-mail messages shown before, connect

    Before I log in, there's my picture and my name next to him and just below my name, it says I have 3 unread emails. If I click on this point, I see a list of the 3 e-mail addresses that I configured in Outlook, with a 1 next to each address. But I ha

  • How to find previous restore points in Vista?

    I had Windows Vista Home Premium.  I then upgraded to Windows Vista Ultimate... I would go back to the Home Basic edition, but when I go to restore points it only shows the restore points for these days. There is a checkbox to display the old restore