JohnnyLong
Programmer
Hi,
Does anyone know how I can improve the performance of this stored proc?
CREATE PROCEDURE sp_DocumentCategoryFind
@pCandidateID AS int,
@pClientID AS int,
@pContactID AS int
AS
SELECT rc_Documents.DocumentID, Subject, Category, FullPathName, ModifiedDate, ModifiedBy, CandidateID, ClientID, ContactID
FROM rc_Documents INNER JOIN rc_DocumentAttachments ON rc_Documents.DocumentID = rc_DocumentAttachments.DocumentID
WHERE (((CandidateID = @pCandidateID) OR ClientID = @pClientID) OR ContactID = @pContactID)
ORDER BY ModifiedDate DESC
Thanks,
John
Does anyone know how I can improve the performance of this stored proc?
CREATE PROCEDURE sp_DocumentCategoryFind
@pCandidateID AS int,
@pClientID AS int,
@pContactID AS int
AS
SELECT rc_Documents.DocumentID, Subject, Category, FullPathName, ModifiedDate, ModifiedBy, CandidateID, ClientID, ContactID
FROM rc_Documents INNER JOIN rc_DocumentAttachments ON rc_Documents.DocumentID = rc_DocumentAttachments.DocumentID
WHERE (((CandidateID = @pCandidateID) OR ClientID = @pClientID) OR ContactID = @pContactID)
ORDER BY ModifiedDate DESC
Thanks,
John