hi,
newbie here.
Within a stored procedure is there any way to use a wildcard to compare a integer input parameter to a data type int field in the tables?
extract:
@DriverID int
WHERE
(DRIVER_ID =
CASE WHEN (@DriverID IS NULL) THEN '%'
WHEN (@DriverID NOT LIKE ' ') THEN '%'
ELSE (@DriverID)
END)
Thanx
[sig][/sig]
newbie here.
Within a stored procedure is there any way to use a wildcard to compare a integer input parameter to a data type int field in the tables?
extract:
@DriverID int
WHERE
(DRIVER_ID =
CASE WHEN (@DriverID IS NULL) THEN '%'
WHEN (@DriverID NOT LIKE ' ') THEN '%'
ELSE (@DriverID)
END)
Thanx
[sig][/sig]