SqlHunter,
The two conversion syntax's are:
CAST(value AS datatype)
CONVERT(datatype, value)
One exception to CONVERT. If you are converting from a DATETIME datatype to a string (VARCHAR, CHAR, etc), then it's:
CONVERT(datatype, value, style)
Refer to the BOL, use the Index tab, enter CONVERT.
-SQLBill
BOL=Books OnLine=Microsoft SQL Server's HELP
Installed as part of the Client Tools
Found at Start>Programs>Microsoft SQL Server>Books OnLine
Posting advice: FAQ481-4875