plus this is just precious:INSERT INTO RubricReportDetail(ReportID, IndicatorID) SELECT RubricReport.ReportID, RubricReportTemplate.IndicatorIDFROM RubricReport, RubricReportTemplateWHERE (RubricReport.ReportID = @ReportID) AND (RubricReportTemplate.IndicatorID = @IndicatorID)
you have no idea on how many levels this code is just wrong.i mean come on... just use joins._______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenp