Editing Plans fails under some conditions when the decimal separator is a comma.
Switch to InvariantCulture when generating SQL statements. Also do this when exporting and importing XML.