Please follow these steps.
1. Close all instances of Citrix studio. Any configuration changes (even through powershell) to be stopped while following the steps(You can power down DDCs to be extra cautious) Take VM snapshot or take backup of all Delivery Controllers.
2. Take full backup of Site, Monitor and Logging databases.
3. Restore Site, Monitor and Logging databases from backup to the new SQL server.
4. Add databases to Cluster, Always-on or Mirror (if applicable).
5. Create logons for the Delivery Controllers on new SQL server(s) and permission should like this.
-- In this example Databases are Citrix1912-LTSRSite, Citrix1912-LTSRLogging and Citrix1912-LTSRMonitoring
6. Power on all Delivery Controllers and note down DB connection Strings for Broker service and Logging and Monitor datastore.
- Open Administrator PowerShell on one Delivery Controller and execute following commands
-- Add-PSSnapin Citrix*
-- Get-BrokerDBConnection
-- Get-LogDataStore
-- Get-MonitorDataStore
7. Make sure there is no connectivity issue from Delivery Controller to new SQL Server / Cluster / Always-on Listener.
-- You can create a file with .udl extension, open it on the Delivery Controller and test connection as follows.
8. Prepare DB Connection strings to set though PowerShell. If you are using specific SQL instance and non-default SQL port connection string will be like this.
$Site = "Server=<NewSQLServer\InstanceName,CustomPortNumber>;Initial Catalog=<Site Database name>;Integrated Security=True"
$Logging = "Server=<NewSQLServer\InstanceName,CustomPortNumber>;Initial Catalog=<Logging database name>;Integrated Security=True"
$Monitor = "Server=<NewSQLServer\InstanceName,CustomPortNumber>;Initial Catalog=<Monitor database name>;Integrated Security=True"
For default instance and port connection strings will be like this.
$Site = "Server=<NewSQLServer>;Initial Catalog=<Site Database name>;Integrated Security=True"
$Logging = "Server=<NewSQLServer>;Initial Catalog=<Logging database name>;Integrated Security=True"
$Monitor = "Server=<NewSQLServer>;Initial Catalog=<Monitor database name>;Integrated Security=True"
Example:
$Site = "Server=MYSQLSERVER.DOMAIN.LOCAL;Initial Catalog=MySiteDatabase;Integrated Security=True"
9. Download the script attached and update line 85 (Step 10), 103 (Step 11), 108 (Step 12) and execute sections as instructed in the script.
10. Restart Delivery Controllers, open Studio.
11. Check VDA registration and launch.