Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i update multiple databases at the same time in SQL Server?

I have 7 databases. Databases have same tables. I want to update all of them at the same time when i edit row or add new row. If one of transactions doesn't work , It will not be updated.

How can i update?

like image 346
Emre D. Avatar asked Aug 01 '26 09:08

Emre D.


1 Answers

You can add all your servers/databases to one group in Registered servers pane (SQL Management Studio(2016): Ctrl + Alt + G to show it). Under local serves Groups.

Then press right button on a new group and select "New Query".

When you execute query it will run on all servers in selected group.

like image 111
Almazini Avatar answered Aug 04 '26 05:08

Almazini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!