SQL Data Types
SQL Data Types
SQL data type is an attribute that specifies type of data of any object. Each column, variable and expression has related data type in SQL. You would use these data types while creating your tables. You would choose a particular data type for a table column based on your requirement. SQL Server offers six categ ories of data types for your use:
Note: Here, datetime has 3.33 milliseconds accuracy where as smalldatetime has 1 minute accuracy.
varchar
varchar
varchar(max)
varchar(max)
text
text
Stores a g lobally unique identifier (GUID) Stores XML data. You can store xml instances in a column or a variable (SQL Server 2005 only). Reference to a cursor object Stores a result set for later processing