Jump to content
Welcome to our new Citrix community!
  • 0

Restore Database and Changing via Studio


Mike Maggio1709162854

Question

2 answers to this question

Recommended Posts

  • 1

You can, but only using powershell.

 

check this: Database Maintenance

 

## ## Clear the current Delivery Controller database connections

Set-MonitorDBConnection -DataStore Monitor -DBConnection $null
Set-MonitorDBConnection -DBConnection $null


## ## Specify the new Database connection string

$ServerName = "<dbserver>"
$SiteDBName = "<SiteDbName>"
$MonitorDBName = "<MonitorDbName>"

$csSite = "Server=$ServerName;Initial Catalog=$SiteDBName;Integrated Security=True"
$csMonitoring = "Server=$ServerName;Initial Catalog=$MonitorDBName;Integrated Security=True;MultiSubnetFailover=True"

Set-MonitorDBConnection -DBConnection $csSite
Set-MonitorDBConnection -DataStore Monitor -DBConnection $null
Set-MonitorDBConnection -DBConnection $null
Set-MonitorDBConnection -DBConnection $csSite
Set-MonitorDBConnection -DataStore Monitor -DBConnection $csMonitoring


## ## Test the new Database connection string

Test-MonitorDBConnection -DBConnection $csSite
Test-MonitorDBConnection -Datastore Monitor -DBConnection $csMonitoring

 

  • Like 2
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...