Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Query Runs slow after changing the value

    Modified version works like a charm :-):-):-)

    USE [NetPortal]

    GO

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    -- =============================================

    -- Create date: <2010/08/09>

    -- Modify Date: <2016/01/27>

    -- =============================================

    ALTER FUNCTION [dbo].[NetPortal_GetProductPrice]

    (

    @ProductCodevarchar(24),

    @RateStructure varchar(24),--MEMBER or LIST

    @Subsystem varchar(10) = null

    )

    RETURNS numeric(12,2)

    AS

    begin

    declare@CurrentPricenumeric(12,2)

    set @CurrentPrice...

  • RE: Query Runs slow after changing the value

    Thank You all, we changed the function how it was calculating the discount price for particular products in select statement

    This is Old Function

    USE [NetPortal]

    GO

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    -- =============================================

    --...

Viewing 2 posts - 1 through 2 (of 2 total)