an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Development > General Programming > DSC_Product_Status_lkp flags
Last Post 1/21/2009 1:49:30 PM By Newmedia Design. 11 replies.
Page 2 of 2 (12 posts) << First < Prev 1 2 Next > Last >> 
1/21/2009 1:49:30 PM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Re: DSC_Product_Status_lkp flags
Thanks Lukezy
 
I modified the sp DSC_Category_Get to join with the view and it works fine.
 
Thanks
 
 

            BEGIN
                IF  (@CategoryId = 0)
                    BEGIN
                        INSERT INTO #subset_Category
                        SELECT  c.categoryId
                        FROM    DSC_Category c INNER JOIN vw_DSC_Category_Count v
                        ON c.categoryId = v.categoryId
                        WHERE c.parentId IS NULL AND v.count > 0
                    END
                ELSE
                    BEGIN
                        INSERT INTO #subset_Category
                        SELECT  @CategoryId
                    END
            END
        ELSE
            BEGIN
                INSERT INTO #subset_Category
                SELECT  c.categoryId
                FROM    DSC_Category c
                JOIN    #CategoryUpLevel parent
                        ON parent.categoryId = c.parentId INNER JOIN vw_DSC_Category_Count v
                        ON c.categoryId = v.categoryId WHERE v.count > 0
            END
 
 
Page 2 of 2 (12 posts) << First < Prev 1 2 Next > Last >>