I have a request as shown below: -
DECLARE @rptID VARCHAR(8) SET @rptID = (SELECT reportID FROM Reports)
Usually @rptID contains numeric digits such as "00001234", etc. But is there a way to check if the @rptID variable contains any non-numeric value in it.
For instance,
IF (@rptID contains non-numeric value) THEN throw Error
Kings source share