sql sp

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 年 前
We'd better add WITH (NOLOCK) to some sql sp(s).


set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

ALTER PROCEDURE [dbo].[Nop_OrderLoadByCustomerID]
(
  @CustomerID int
)
AS
BEGIN
  SET NOCOUNT ON
  SELECT
    *
  FROM [Nop_Order] WITH (NOLOCK)
  WHERE
    CustomerID=@CustomerID and Deleted=0
  ORDER BY CreatedOn desc
END
14 年 前
Thanks! I'll create work item for this task.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.