Question : Convert VBA Function to SQL Function

Here is another VBA gem that needs to be converted to a SQL Function:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
Public Function UnTick(p32)
    If (IsNumeric(p32)) Then
        UnTick = p32
    Else
        dash = InStr(p32, "-")
        Px_length = Len(p32)
        intPx = Left(p32, dash - 1)
        intTicks = Right(p32, Px_length - dash)

        If (InStr(intTicks, "+")) Then
            plus = InStr(intTicks, "+")
            tk_length = Len(intTicks)
            subticks = Left(intTicks, plus - 1)
            UnTick = intPx + subticks * (1 / 32) + 0.5 / 32
        Else
            If (InStr(intTicks, ":")) Then
                colon = InStr(intTicks, ":")
                tk_length = Len(intTicks)
                subticks = Left(intTicks, colon - 1)
                eigths = Right(intTicks, tk_length - colon)
                UnTick = intPx + subticks * (1 / 32) + eigths * (1 / 8) * (1 / 32)
            Else
                UnTick = intPx + intTicks * (1 / 32)
            End If
        End If
    End If
End Function

Answer : Convert VBA Function to SQL Function

Yes you can mail enable the public folder you will be using. As after this the cliesnts having appropiate permission can derive the email from public folder and send too.

More on mail enabled public folder and commands related:
http://technet.microsoft.com/en-us/library/aa997560.aspx

Managing permissions:
http://technet.microsoft.com/en-us/library/bb310789(EXCHG.80).aspx

You can configure application running on fax server to forward email to mail enabled public folder and configure its identity as author and yup you should be good.
Random Solutions  
 
programming4us programming4us