Start dealing with parameter problem in TSQLScript
Cosmetic
Use LineEnding instead of hardcoded #10 so SQL errors are more comprehensible on Windows