diff --git a/d365fo.tools/functions/invoke-d365dbsync.ps1 b/d365fo.tools/functions/invoke-d365dbsync.ps1 index 34480692..d09bfd5a 100644 --- a/d365fo.tools/functions/invoke-d365dbsync.ps1 +++ b/d365fo.tools/functions/invoke-d365dbsync.ps1 @@ -141,7 +141,7 @@ function Invoke-D365DbSync { $params = @("-syncmode=$($SyncMode.ToLower())", "-verbosity=$($Verbosity.ToLower())", "-metadatabinaries=`"$MetadataDir`"", - "-connect=`"server=$DatabaseServer;Database=$DatabaseName; User Id=$SqlUser;Password=$SqlPwd;`"" + "-connect=`"server=$DatabaseServer;Database=$DatabaseName; User Id=$SqlUser;Password='$SqlPwd';`"" ) Write-PSFMessage -Level Debug -Message "Starting the SyncEngine with the parameters." -Target $param @@ -149,4 +149,4 @@ function Invoke-D365DbSync { Invoke-Process -Executable $executable -Params $params -ShowOriginalProgress:$ShowOriginalProgress -OutputCommandOnly:$OutputCommandOnly -LogPath $LogPath Invoke-TimeSignal -End -} \ No newline at end of file +}