Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

Using Add-SQLAvailabilityDatabase command

$
0
0

Hi All,

I'm trying to get the Add-SqlAvailabilityDatabase command working.

This is how the command is supposed to be formatted:

Add-SqlAvailabilityDatabase -Path "SQLSERVER:\SQL\PrimaryServer\InstanceName\AvailabilityGroups\MyAg" -Database "MyDatabase"

So I ran the following command

Add-SqlAvailabilityDatabase -Path "SQL01:\SQL\PrimaryServer\InstanceName\AvailabilityGroups\AG01" -Database "TestDB01"

But this errors with:

Add-SqlAvailabilityDatabase : Cannot find drive. A drive with the name 'SQL01' does not exist.

But that server is definitely there.

I'm guessing I have the format wrong so can someone tell me how to correctly run this please?

Thanks.


Tom


Viewing all articles
Browse latest Browse all 4532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>