Friday, February 26, 2010

INT and SMALLINT

What will be the output of the following scripts?
DECLARE @a INT
DECLARE @b SMALLINT
SET @a = POWER(2,15)
SET @b = @a
SELECT @a

A. 32768
B. 32767
C. An error will be generated
D. NULL

Answer:[C]
Highlight to find out the answer.

No comments:

Post a Comment