Skip to content

Commit

Permalink
Update availability demo for azure sql db developer
Browse files Browse the repository at this point in the history
  • Loading branch information
rgward committed Jun 13, 2022
1 parent 0598fe1 commit 1c9b254
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions demos/securescaleabledbapp/demo3_availability/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<connectionStrings>
<add name="ConsoleAppConnectiongp1"
providerName="Microsoft.Data.SqlClient"
connectionString="Server=tcp:<server>.database.windows.net,1433;Database=<db1>;User=<sqllogin>;Password=<pwd>;TrustServerCertificate=False;Connection Timeout=30;"/>
connectionString="Server=tcp:<server>.database.windows.net,1433;Database=<db>;User=<login>;Password=<pwd>;TrustServerCertificate=False;Connection Timeout=30;"/>
<add name="ConsoleAppConnectiongp3"
providerName="Microsoft.Data.SqlClient"
connectionString="Server=tcp:<server>.database.windows.net,1433;Database=<db2>;User=<sqllogin>;Password=<pwd>;TrustServerCertificate=False;Connection Timeout=30;"/>
connectionString="Server=tcp:<server>.database.windows.net,1433;Database=<db>;User=<login>;Password=<pwd>;TrustServerCertificate=False;Connection Timeout=30;"/>
</connectionStrings>
</configuration>
2 changes: 1 addition & 1 deletion demos/securescaleabledbapp/demo3_availability/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static public void RunWorkload(string connString, SqlRetryLogicBaseProvider prov
using (var connection = new SqlConnection(connString))
{
// Set the retry logic provider on the connection instance
connection.RetryLogicProvider = provider;
//connection.RetryLogicProvider = provider;

// open the connection
connection.Open();
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Invoke-AzSqlDatabaseFailover -ResourceGroupName "<resource group>" -ServerName "<server>" -DatabaseName "<db1>"
Invoke-AzSqlDatabaseFailover -ResourceGroupName "bwazuresqlrg" -ServerName "bwazuresqlserver" -DatabaseName "bwazuresqldbgp1"

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Invoke-AzSqlDatabaseFailover -ResourceGroupName "bwazuresqlrg" -ServerName "bwazuresqlserver" -DatabaseName "bwazuresqldbgp3"

0 comments on commit 1c9b254

Please sign in to comment.