SQL Server CASE Expression

In SQL Server, the T-SQL CASE expression is a scalar expression that returns a value based on conditional logic. It evaluates a list of conditions and returns a value, based on the outcome of those conditions..

In some ways, the SQL Server CASE expression is similar to IF...ELSE. However, CASE allows you to check for multiple conditions, whereas IF...ELSE doesn’t.

Continue reading

Change the Priority of an Account within a Database Mail Profile (SSMS)

Here, I demonstrate how to change the priority of a Database Mail account within a profile in SQL Server using the SQL Server Management Studio (SSMS) graphical user interface.

If you want to see how to do it using T-SQL, see Change the Sequence Number of an Account in Database Mail (T-SQL).

The priority and the sequence number are the same thing (when you change it with T-SQL you use the @sequence_number parameter).

Continue reading