Batch initializing availability database objects #109
-
The task is to enumerate all availability databases in all availability groups on a server. SMO executes a query for each availability database in each AG. The number of trips to the SQL Server grows with the number of databases. Is it possible to configure SMO to get the data as a single batch with one or a couple of queries? |
Beta Was this translation helpful? Give feedback.
Answered by
shueybubbles
Sep 6, 2022
Replies: 1 comment 2 replies
-
@aguzev what does the naive code loop look like? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
aguzev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@aguzev what does the naive code loop look like?