Created
May 27, 2010 11:38
-
-
Save carlhoerberg/415714 to your computer and use it in GitHub Desktop.
Sync two MsSql databases
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 | |
setlocal | |
set path="%programfiles%\IIS\Microsoft Web Deploy";%PATH% | |
msdeploy -verb:sync -source:dbFullSql="Data Source=.\SQLEXPRESS;Initial Catalog=MyDB;Integrated Security=true",computerName=yourcomputer.com ^ | |
-dest:dbFullSql="Data Source=.\SQLEXPRESS;Initial Catalog=MyDB;Integrated Security=true",dropDestinationDatabase=true | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment