Command Line: Sync to TFS (Not Syncroniznig)
hagenl
Posts: 8
I can successfully compare a SQL Database with Source Control (TFS), however when I add the /Synchronize command, the differences do not get checked into Source Control.
It looks like the export starts (migration folder gets created and the differentials are printed as Verbose entries re: Command Line). Once the differentials are written to the log, the process just stops & TFS does not reflect any of the changes.
I have put what I believe to be the relevant parts of the Log run with Verbose enabled. If it makes a difference, the deployment where it is currently failing is two schema and one stored procedure (all updates to existing objects).
It looks like the export starts (migration folder gets created and the differentials are printed as Verbose entries re: Command Line). Once the differentials are written to the log, the process just stops & TFS does not reflect any of the changes.
I have put what I believe to be the relevant parts of the Log run with Verbose enabled. If it makes a difference, the deployment where it is currently failing is two schema and one stored procedure (all updates to existing objects).
15:30:16.043|Verbose|Command Line |1 |Argument /synchronize has value 'True' ... 15:30:17.816|Trace |Source Control Link |1 |SQL Source control link successfully created ... __Info/Traces re: Comparison__ ... 15:31:03.364|Info |SQL Compare Engine |27 |Comparison Finish. 15:31:03.365|Trace |Source Control Link |27 |SQL Source control link successfully created 15:31:03.673|Info |Source Control Link |27 |Exporting migrations folder to C:\Users\<user>\AppData\Local\Temp\Red Gate\1f735c1c-979f-4340-b26f-670a53a8d7c3
Comments
Probably the best thing to do would be to check out the head revision, deploy to the checked-out script folder, and then commit that using your TFS client. Hope that makes sense!
Red Gate Technical Support Engineer
Was really hoping to monitor & check into test using the command line - at least I'm still able to see the potential changes. Would be used for purposes of integrating into our mechanism for version control on a wide array of file types.
Any chance it is something being considered for a future release?
Thanks very much for your help!
Edit: I see what you're suggesting now would still give us what we need (I think) - will try to implement that. Thanks again
/MakeScripts Option
1) Doesn't apply the filter I'm sending to the Command Line
2) Must be used with a blank scripts folder
/Scripts2 Option
1) "Error: Deployment to scripts folders is not supported by VersionedWork." - I assume this is caused by SQL Source Control having a connection to TFS.
It might still be possible to use /MakeScripts but leverage another script to filter out unwanted files, based on the business rules we need and then check only the remaining files into TFS.
Open to other options, if you have any suggestions.[/u]
Can you try rebooting, on the off-chance that that might help? Sorry I can't be more specific!
Red Gate Technical Support Engineer
Red Gate Technical Support Engineer
Red Gate Technical Support Engineer