April 11, 2015

Is this script will run in SQL Server

DECLARE @DATE DATE
SET @DATE = '12/20/2015' + 5
SELECT @DATE

No. It will raise an exception because we cannot add integer with date field.

No comments:

Post a Comment