Skip to content

Commit

Permalink
Merge pull request #755 from onikolaiev/patch-1
Browse files Browse the repository at this point in the history
Invalid SQL connection string fix
  • Loading branch information
Splaxi authored Oct 16, 2023
2 parents f190ead + 996fd99 commit 3b56cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d365fo.tools/functions/invoke-d365dbsync.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ 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
#! We should consider to redirect the standard output & error like this: https://stackoverflow.com/questions/8761888/capturing-standard-out-and-error-with-start-process
Invoke-Process -Executable $executable -Params $params -ShowOriginalProgress:$ShowOriginalProgress -OutputCommandOnly:$OutputCommandOnly -LogPath $LogPath

Invoke-TimeSignal -End
}
}

0 comments on commit 3b56cc2

Please sign in to comment.