I have the need to add tables and stored procedures to existings shards, could anyone point me to the right direction on how to do this?
I have the need to add tables and stored procedures to existings shards, could anyone point me to the right direction on how to do this?
Hi @EmmanuelToledoSepulvedaUSIFS-7914, welcome to Microsoft Q&A forum.
Adding table to database in elastic pool is same as we do in any azure Sql Database. We can use SSMS to connect to server and database and create any database objects. Please check the screenshots below:
1) Connecting to database server:
2) Creating tables or stored procedure:
We can also use Azure Data Studio for the same.
Please let us know if this helps or else we can discuss further.
If answer helps, please mark it 'Accept Answer'
Thanks @AnuragSharma-MSFT for the information, one last thing. Do I need to also modify the ShardedDatabaseSchemaInfosGlobal table in the Shard Manager to add the new tables as part of the Sharded table set xml object?
Hi @EmmanuelToledoSepulvedaUSIFS-7914, thanks for reverting back. I am checking this and will get back at the earliest.
There are a set of tables that get created automatically while we define our shard map manager database. As we add the databases that would be part of sharding and the tables that would be sharded, this information is added by itself into the ShardedDatabaseSchemaInfosGlobal table. We can open the schema xml to check which all tables are part of sharding databases.
11 people are following this question.