Is there an easy way to enter a wildcard for a Stored Procedure Parameter (int or nvarchar)?
I have the following params:
@CompanyID int,
@DateFrom datetime,
@DateTo datetime,
@VendorID int,
@SiteID nvarchar,
@ServiceTypeID int
and criteria:
HAVING SubUtilCurrent.ClientID = @CompanyID AND
SubUtilCurrent.VendorID = @VendorID AND
SubUtilCurrent.[Site Number] = @SiteID AND
SubUtilCurrent.ServiceTypeID = @ServiceTypeID
A lot of times I won't have a value to enter for the Vendor, SiteID and ServiceTypeID..... and I just want to see all records.
TIA!!
Beau
I have the following params:
@CompanyID int,
@DateFrom datetime,
@DateTo datetime,
@VendorID int,
@SiteID nvarchar,
@ServiceTypeID int
and criteria:
HAVING SubUtilCurrent.ClientID = @CompanyID AND
SubUtilCurrent.VendorID = @VendorID AND
SubUtilCurrent.[Site Number] = @SiteID AND
SubUtilCurrent.ServiceTypeID = @ServiceTypeID
A lot of times I won't have a value to enter for the Vendor, SiteID and ServiceTypeID..... and I just want to see all records.
TIA!!
Beau