DBA > Job Interview Questions > Microsoft SQL Server FAQs

Which of the following datatypes can be represen

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

Which of the following datatypes can be represented in a SQL_VARIANT datatype?

Answer
None of the above.

Explanation
The SQL Variant type can store all datatypes except varchar(max), varbinary(max), xml, text, ntext, rowversion/timestamp (thought the data of a rowversion can be stored in a binary(8), which can be stored in a sql_variant) and sql_variant (it may seem strange that you can’t store a variant in a variant, but all this is saying is that the sql_variant data type doesn’t actually exist as such—SQL Server chooses the best type of storage to store the value you give to it).

(Continued on next question...)

Other Job Interview Questions