UPDATE Report SET ReporttypeId = (SELECT ReportTypeId FROM ReportType AS rt WITH (NOLOCK) WHERE code = 'SYSTEM' AND Name= 'System') WHERE ReportTypeId = (SELECT ReportTypeId FROM ReportType AS rt WITH (NOLOCK) WHERE code = 'ADMIN' AND Name= 'Admin') GO Delete from ReportType Where ReportTypeId = (SELECT ReportTypeId FROM ReportType AS rt WITH (NOLOCK) WHERE code = 'ADMIN' AND Name= 'Admin')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)