SQL Server 2012 . Novas funções conversion e logical
Novidades no SQL Server 2012
1) CONVERSION FUNCTIONS - PARSE, TRY_PARSE e TRY_CONVERT
1.1) PARSE
Select PARSE('0.02315' as money)

O comando abaixo retorno um erro, para nos ajudar no tratamento foi criado o comando TRY_PARSE que retorna null em caso de erro.
select PARSE('30/12/2012' as datetime)
1.3) TRY_CONVERT
Caso o valor origem não seja uma string, continue usando o CONVERT.
Quando é uma conversão permitida, mas com erro, ele retorna null
select TRY_CONVERT(int, '4s')
Quando é uma conversão não permitida, ele retorna erro

2.1) CHOOSE
Declare @Cargo int
ANTIGO:
NOVO:

Select ISNULL(CHOOSE(@Cargo, 'Estagiário', 'Analista', 'Coordenador', 'Gerente'), 'Sem Valor')
2.2) IIF
Ele utiliza a estrutura IF-THEN-ELSE, mas de uma forma mais limpa. IIF(Condição, se verdadeiro, se falso)
Declare @Cargo int
Na parâmetro condição, também pode ser usado IN, Like, Exists, etc
Related articles
Update Select on SQL Server
In SQL Server, there is no single UPDATE SELECT...
How to call a function inside my SQL Server?
Database function function and function
How to create an SQL to do multiple inserts in one statement?
Practical examples
Short: SQL Update using begin try and begin transaction
Commit and Rollback command
Getting the last 120 months of data from my database
how to do it in SQL language?
How to create a variable to use the IN clause SELECT query SQL?
Database code part
SQL Update using Try Catch
Na prática com exemplo real
Comando SQL Update usando Try Catch
Na prática e no database
SELECT Format Date Time for many countries
It is a good tip to use day by day
Creating a SiteMap using SQL Database
Como indexar melhor meu site e links?
Ozimar Henrique