I must translate a Cognos Impromptu 7 query to TSQL. Part of the query includes the following:
nconvert((SUBSTRING((ascii(t1.TargetDate)) from 1 for 4)))
/*
where:
t1 is a table alias
TargetDate is a BIGINT contains the value 200501
*/
Can someone explain the purpose of the function/expression "ascii"?
(FYI: SQL Server ASCII function produces ascii(200501) ==> ascii(2) ==> 50 )
Bonus: If someone can point me to an online resource that includes the ascii definition, that would be appreciated. My search bore no fruit.