Conversion function in SQL SERVER : I need to execute a function that converts 2 characters to an integer.

The rule works this way:

99 = 99<br>
9A = 100<br>
9B = 101<br>
9C = 102<br>
9D = 103<br>
.<br>
.<br>
.<br>
9Z = 125<br>
AA = 126<br>
AB = 127<br>

So for example, my function receives '9C' and should return '102'. The function must be done in SQL.
