Today I wrote my first MsBuild script that uses sqlcmd.exe to execute SQL Server commands remotely. It is awesome. Although it is fairly limited, for tasks like backing up databases, it is very simple and easy.
<Target Name="Backup"> <Exec Command='sqlcmd -S $(server) -q "$(sql)"' /> </Target>
Anyway to zip up (and post) a mini example?
I love sqlcmd (I have a demo at http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!583.entry btw )…and would like to get a “download .sql scripts and rebuild database” working with CC.NET/Subversion.
Thanks.