1. There isn't one. (P.S. I didn't think 'val()' would convert 'EQ12345' as you indicate. I thought it stopped as soon as it encountered a nonnumeric character, which would be the first one). In any case, I don't know a good way to do what you want, except to parse off the string one character at a time and build another with just the numeric characters via LIKE, then convert the string to numeric. This is, of course, procedural and ugly in SQL.
2. To convert the string '98765' to an integer, use CAST, eg. CAST('98765' as integer)
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com