Question

I am currently working on getting automatic migrations set up to go to a federated database in Azure. I have finally gotten deployment of tables working, but one thing that is concerning for the future is deploying stored procedures.

It appears that when we add a stored procedure, it exists only on whatever part of the federation we were in. So, if I have the data separated out into two databases and deploy the stored procedures to one of the dbs, then it will only be there. Is there any way to deploy a stored procedure out to every database in a federation that is built into Azure already?

I did find a msdn blog post about querying from multiple databases and I think that I could modify this to deploy the procedures, but I would rather not implement that in the current migration setup, as I think it would get messy.

Was it helpful?

Solution

I think this is the only way to fan-out your script to create a stored procedure. Similar as what Cihan said in his blog post. But I think you'd better create the tables, procedures and functions, etc. on the first member, before you split. If so the SQL Azure will help you create the members with the procedures.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top