I have the following SQL fragment that does not work:
declare @id INT;
set @id=0;
exec insert_mail @id OUTPUT, 'ZLgeOZlqRGC6l57TyD/xYQ==', 4928, '2010\01\14\14\03131_2.eml', 'Suz, Katie and Kourtney' Housewarming Party', CONVERT(DATETIME, '2015-01-18 14:03:13', 120);
select @id;
and changing it thus captures this:
declare @id INT;
set @id=0;
declare @p_valid_until datetime;
set @p_valid_until=CONVERT(DATETIME, '2015-01-18 14:03:13', 120)
exec insert_mail @id OUTPUT, 'ZLgeOZlqRGC6l57TyD/xYQ==', 4928, '2010\01\14\14\03131_2.eml', 'Suz, Katie and Kourtney' Housewarming Party', @p_valid_until;
select @id;
Can anyone explain?
Cheers, Ian
source
share