 
     CREATE TABLE #temp
     (
-        SectionTypeName VARCHAR(16),
+        Facility VARCHAR(64),
+        Area VARCHAR(256),
         SectionTitle VARCHAR(256),
         SectionRank INT,
-        SectionContent VARCHAR(4096),
         ComponentModel VARCHAR(64),
-        ComponentDescription VARCHAR(2048),
         ManufacturerName VARCHAR(64),
         SeriesName VARCHAR(64),
         ComponentTypeName VARCHAR(32)

--        SELECT
--            CurveID,
--            CurveDB,
--            SectionTypeName,
--            Title AS SectionTitle,
--            Rank AS SectionRank,
--            Content AS SectionContent
--        FROM
--            PQInvestigator.UserIndustrialPQ.dbo.FacilityAudit JOIN
--            PQInvestigator.UserIndustrialPQ.dbo.AuditSection ON AuditSection.FacilityAuditID = FacilityAudit.FacilityAuditID JOIN
--            PQInvestigator.UserIndustrialPQ.dbo.SectionType ON AuditSection.SectionTypeID = SectionType.SectionTypeID JOIN
--            PQInvestigator.UserIndustrialPQ.dbo.AuditCurve ON AuditCurve.AuditSectionID = AuditSection.AuditSectionID
--        WHERE
--            AuditCurve.CurveType = 'TOLERANCE' AND
--            FacilityAudit.FacilityID = @facilityID
--    )
--    SELECT
--        FacilityCurve.SectionTypeName,
--        FacilityCurve.SectionTitle,
--        FacilityCurve.SectionRank,
--        FacilityCurve.SectionContent,
--        Component.ComponentModel,
--        Component.ComponentDescription,
--        Manufacturer.ManufacturerName,
--        Series.SeriesName,
--        ComponentType.ComponentTypeName

--        IsUnder <> 0
--    UNION
--    SELECT
--        FacilityCurve.Facility,
--        FacilityCurve.Area,
--        FacilityCurve.SectionTitle,
--        FacilityCurve.SectionRank,
--        Component.ComponentModel,
--        Manufacturer.ManufacturerName,
--        Series.SeriesName,
--        ComponentType.ComponentTypeName
