SQL object script has fatal errors