SQL | Two Schemas Questions [closed]

一世执手 提交于 2021-02-17 07:17:10

问题


I'm new to the schema part of sql so trying to explore and have doubts on the following,

  1. there are two schemas S1 and S2 with table T1 in S1 and T2 in S2: If a user logins to S1 will he be able to the following:
  • Access table T2
  • How will you grant access to T2 from S1?
  • How will you give access to S1 on T2 so that user does not have to mention the schema name while accessing the table T2 from S1.
  • What kind of synonym will be created for the above scenario?
  1. Now suppose S2 is in a separate database, then how can we do :
  • Access T2 from S1
  • If T1 has 500GB of data and has to be migrated to S2 in T2 with same structure, how will you achieve this. What are the pointers that will be considered while designing this solution?
  • How will you design this solution if there are indexes on both source and target table?

How can we resolve the above?

来源:https://stackoverflow.com/questions/66170001/sql-two-schemas-questions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!