Commandline sync and scriptfile options
molnara
Posts: 10
Hello,
I am trying to setup a continuous integration using TFS Build. Problem is, the /scriptfile argument does not seem to work unless /sync is also specified. I need to generate an update script that I can run at a later time WITHOUT having the sqlcompare do a database synchronization.
The following command is an example of what I'm executing during my build:
sqlcompare /scr1:"C:\SchemaPath" /db2:DBName /s2:ServerName /ScriptFile:"C:\Update.sql" /IgnoreParserErrors /f
Using the above example will not generate a script file unless I also pass the /sync option.
I really hope that I have just over looked something and this is not by design. I really need to have scripts executed at a later time, NOT during the TFS Build.
Thanks in advance for any help.
-Adam
I am trying to setup a continuous integration using TFS Build. Problem is, the /scriptfile argument does not seem to work unless /sync is also specified. I need to generate an update script that I can run at a later time WITHOUT having the sqlcompare do a database synchronization.
The following command is an example of what I'm executing during my build:
sqlcompare /scr1:"C:\SchemaPath" /db2:DBName /s2:ServerName /ScriptFile:"C:\Update.sql" /IgnoreParserErrors /f
Using the above example will not generate a script file unless I also pass the /sync option.
I really hope that I have just over looked something and this is not by design. I really need to have scripts executed at a later time, NOT during the TFS Build.
Thanks in advance for any help.
-Adam
Comments
Now, it does generate the script BUT it seems to hang, unless I press enter, then it exits.
Redgate Software
Hi,
If you're referring to the "hanging at the end" issue, then the latest patch build should sort that out. Can you download the latest release from the Cumulative Patch stickied thread and see if it helps?
Redgate Software
if I'm downloading patch from http://www.red-gate.com/messageboard/viewtopic.php?t=11077 will guaranty that his will work?
Redgate Software
Redgate Software
I'm using an XML arguments file that specifies snapshot1, snapshot2 and scriptfile. SQLCompare does not complain, but no script file is being generated.
If you check molnara's post above, you'll see this was fixed in the 8.50.25.20 version which is newer than the one you have. Please try the latest cumulative patch in the post here: http://www.red-gate.com/messageboard/vi ... hp?t=11077 to see if it helps out.
Redgate Software
I read the version wrong. I did as you suggested and it works fine now.
Thanks!