Created
September 23, 2013 13:35
-
-
Save kulmam92/6670495 to your computer and use it in GitHub Desktop.
Check in DB schema to SVN using SQLCompare.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SVN add --username MyUser --password MyUserP@ss --force * --auto-props --parents --depth infinity | |
SVN commit --username MyUser --password MyUserP@ss -m "Daily Checkin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Echo OFF | |
set VarServer1=%1 | |
set VarDB1=%2 | |
set VarUserName1=%3 | |
set VarPassword1=%4 | |
set VarScriptFolder=%5 | |
rem ================================== | |
rem If /Include:Identical is not set, and the data sources are identical, SQL Compare returns the error code 63 | |
rem =================================== | |
if not exist %VarScriptFolder%\RedGateDatabaseInfo.xml ( | |
sqlcompare /server1:%VarServer1% /db1:%VarDB1% /UserName1:%VarUserName1% /Password1:%VarPassword1% /Makescripts:%VarScriptFolder% | |
) else ( | |
sqlcompare /server1:%VarServer1% /db1:%VarDB1% /UserName1:%VarUserName1% /Password1:%VarPassword1% /Scripts2:%VarScriptFolder% /Synchronize /Force /Include:Identical | |
) | |
echo %ERRORLEVEL% | |
EXIT %ERRORLEVEL% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment