Nota: La herramienta Cambiar servidor de base de datos StoragePoint también aparecerá en el menú Aplicaciones de los servidores Windows 2012.
Nota: La secuencia de comandos está diseñada para ejecutarse línea por línea.
$newServerName = ""
$farm = get-spfarm
#Show the current connection string
$farm.Properties["StoragePointDbConnectionString"]
#Change the current connection string
$oldConnectionString = $farm.Properties["StoragePointDbConnectionString"]
$sqlConnBuilder = New-Object System.Data.SqlClient.SqlConnectionStringBuilder -ArgumentList @($oldConnectionString)
$oldServerName = $sqlConnBuilder.DataSource
$newConnectionString = $oldConnectionString.Replace($oldServerName, $newServerName)
$farm.Properties["StoragePointDbConnectionString"] = $newConnectionString
$farm.Update()
#See the updated connection string
$farm.Properties["StoragePointDbConnectionString"]
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center