Home Forums Article Discussions Article Discussions by Author Discuss content posted by Kaifi What will happen? RE: What will happen?
Tushar Kanti
Ten Centuries
Points: 1143
More actions
September 1, 2010 at 2:45 am
#1214786
@ziangij
please try the code below. I think this is what the auhtor wanted to convey. However one thing I would like to point out that Datetime is 8byte and Int is 4byte.
DECLARE @a INT
DECLARE @b-2 DATETIME
set @a= getdate()
SET @b-2 = @a
Thanks,
Tushar