How can we help you today? How can we help you today?
Spud
Ok after a little investigation there are some funny shenanigans going on with the command line arguments, and what causes all these statements to be generated, but at least I have a workaround. If I run this: "C:\Program Files (x86)\Red Gate\SQL Compare 10\sqlcompare.exe" /project:"C:\Users\MyUser\Documents\SQL Compare\SharedProjects\redgateprojectfile.scp" /scriptfile:output.sql /password1:password /force /verbose /Options:Default,ForceColumnOrder,IgnoreCollations,oec,IncludeDependencies then it doesn't create the sp_refreshview statements But it I then append either of these to the end: a) "/Report:output.html /reportType:Simple" b) "/include:identical" then in each case any change cause sqlcompare to include a sp_refreshview statement for every view in the database, even if the only change was (for example) creating a new table "hello" which has no dependant objects in the database. Therefore if I run two statements instead, both of which start: "C:\Program Files (x86)\Red Gate\SQL Compare 10\sqlcompare.exe" /project:"C:\Users\MyUser\Documents\SQL Compare\SharedProjects\redgateprojectfile.scp" /password1:password /force /verbose /Options:Default,ForceColumnOrder,IgnoreCollations,oec,IncludeDependencies and apend this to the first: /include:identical /Report:output.html /reportType:Simple and this to the second /scriptfile:output.sql Then I've created my report and output file correctly (without the statements) but with the downside that obviously the build will take longer due to running the statement twice. Hope this helps someone anyway. I'll let you raise a bug if you think it needs one, as there's obviously something a bit quirky going on... / comments
Ok after a little investigation there are some funny shenanigans going on with the command line arguments, and what causes all these statements to be generated, but at least I have a workaround. If...
0 votes