Skip to content

Commit 5f974c1

Browse files
authored
Merge pull request #192658 from sasapopo/main
Introducing fixes in scripts.
2 parents e0fce93 + cf2d91a commit 5f974c1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

articles/azure-sql/managed-instance/managed-instance-link-use-scripts-to-replicate-database.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,7 @@ Use the following script to list all available Availability Groups and Distribut
398398
```sql
399399
-- Execute on SQL Server
400400
-- This will show that Availability Group and Distributed Availability Group have been created on SQL Server.
401-
SELECT
402-
name, is_distributed, cluster_type_desc,
403-
sequence_number, is_contained
404-
FROM
405-
sys.availability_groups
401+
SELECT * FROM sys.availability_groups
406402
```
407403

408404
Alternatively, in SSMS object explorer, expand the “Always On High Availability”, then “Availability Groups” folder to show available Availability Groups and Distributed Availability Groups.
@@ -433,7 +429,7 @@ $DAGName = "<DAGName>"
433429
# Enter database name that was placed in Availability Group for replciation
434430
$DatabaseName = "<DatabaseName>"
435431
# Enter SQL Server address
436-
$ SQLServerAddress = "<SQLServerAddress>"
432+
$SQLServerAddress = "<SQLServerAddress>"
437433
438434
# =============================================================================
439435
# INVOKING THE API CALL -- THIS PART IS NOT USER CONFIGURABLE

0 commit comments

Comments
 (0)