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.
Friday, February 26, 2010
INT and SMALLINT
at 7:33 PM
Labels: SQL Server, SQL Server Test, SQL Server Tip
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment