In SQL Server, what is the purpose of the TRY_CONVERT() function?
A. Concatenate multiple values
B. Convert a value to a different data type and handle errors gracefully
C. Find the average value
D. Validate XML structure
'TRY_CONVERT()' is used to convert a value to a different data type and handle errors gracefully in SQL Server.