SQL Learner
2007-06-25 16:19:24 UTC
I cannot figure out proper format string for a bigint so that I could
directly embed my input parameter in my exception string, as follows
DECLARE @quantity BIGINT
SET @quantity = 1234567890
RAISERROR('Cannot Process Quantity %d', 16, 1, @quantity)
Of course I could cast it to varchar before raising an error, but is
there a direct way?
TIA
directly embed my input parameter in my exception string, as follows
DECLARE @quantity BIGINT
SET @quantity = 1234567890
RAISERROR('Cannot Process Quantity %d', 16, 1, @quantity)
Of course I could cast it to varchar before raising an error, but is
there a direct way?
TIA