I am writing a function that has a varchar(100) parameter. I want to use it as a bigint.
1. Before converting the value, I want to know whether I can convert it. I know that isDate(expr) returns true if a value is a date. Does something similar exist for integers?
2. How do I actually do the conversion? I know that I should use either "cast" or "convert", but I do not recall the exact syntax.
Thanks alot for your input!
1. Before converting the value, I want to know whether I can convert it. I know that isDate(expr) returns true if a value is a date. Does something similar exist for integers?
2. How do I actually do the conversion? I know that I should use either "cast" or "convert", but I do not recall the exact syntax.
Thanks alot for your input!