jasonsalas
IS-IT--Management
Hi everyone,
I'm hoping someone can help me out with a problem. I'm trying to run a SPROC that needs to return data only if a column of type VARCHAR(200) can be converted to type INT. Basically, I've got varying types of data within the column from URLs, including record IDs, and I need to return only the record IDs. I'm thinking that somehow evaluating whether a column can be considered an INT, and ignoring all other values, might be the way to go.
Is there a conversion or some other function I can call that won't break the rest of the data?
Thanks for your help!
I'm hoping someone can help me out with a problem. I'm trying to run a SPROC that needs to return data only if a column of type VARCHAR(200) can be converted to type INT. Basically, I've got varying types of data within the column from URLs, including record IDs, and I need to return only the record IDs. I'm thinking that somehow evaluating whether a column can be considered an INT, and ignoring all other values, might be the way to go.
Is there a conversion or some other function I can call that won't break the rest of the data?
Thanks for your help!