Using SQL Compare 10, I've created an .scp file which compares a local database (on the local build server) with what's in Source control (TFS via redgate SQL Source Control)
Using the GUI a number of differences are listed.
When running the .scp file from the command line, no differences are listed at all. - "The selected objects are identical or no objects have been selected in the comparison"
Command line is
"C:\Program Files (x86)\Red Gate\SQL Compare 10\sqlcompare.exe" /project:"C:\Users\CIUser\Documents\SQL Compare\SharedProjects\MyDBName v MyDBName (Head).scp" /scriptfile:deploy_MyDBName.sql /include:identical /force
NB
The /include:/identical switch means the compare will not report an error if no changes are detected
The /force switch forces an overwrite of the sql script, rather than causing an error