I have this value "0310D45"
I use isnumeric to check if the values ββare numeric before casting in bigint. Unfortunately, this value skips the isnumeric check. Therefore, my request fails:
Msg 8114, Level 16, State 5, Line 3 Error converting data type varchar to bigint.
What is the easiest way to handle this. I was thinking about using charindex, but I would need to check all 26 letters.
Is there a simple solution that I don't see? I really don't want to create a custom function.
thanks
sql sql-server sql-server-2005
codingguy3000
source share