Mega Code Archive

 
Categories / MSSQL Tutorial / Data Types
 

The creation of the table, with a column of the SQL_VARIANT type

5>  CREATE TABLE Item_Attributes ( 6>           item_id INT NOT NULL, 7>           attribute NVARCHAR(30) NOT NULL, 8>           value SQL_VARIANT NOT NULL, 9>           PRIMARY KEY (item_id, attribute)) 10> GO 1> 2> drop table Item_Attributes; 3> GO