CREATE PROCEDURE [dbo].[spSaleLookUp] @CashierId nvarchar(128), @SaleDate datetime2 AS BEGIN SET NOCOUNT ON; Select Id from dbo.Sale where CashierId = @CashierId and SaleDate = @SaleDate; END