ISNumeric
Hello,
i have a question. In my Derived Column i would like use ISNUMERIC but this function is unfortunely not possible to use. Which alternative is used in SSIS ???
Best regards
March 23rd, 2012 10:30am
Try this
http://www.bidn.com/blogs/dustinryan/ssis/915/check-isnumeric-with-derived-column-transform-in-ssis-package
Thanks
Aamirhttp://sqlage.blogspot.com/
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2012 10:32am
Hello,
i found this website, but i didnet understand it. If i copy and paste this row
(DT_I4)CheckForNumeric == (DT_I4)CheckForNumeric ? 1 : 0
and replace checkfornumeric with my attribut nothing happen...
please explain me what i should write in derived column task. my attribute name is nameNB
March 23rd, 2012 10:43am
There isn't a standard method for that. See/vote:
https://connect.microsoft.com/SQLServer/feedback/details/658361/isnumeric-expression-for-ssis
But here are a few workarounds:
http://microsoft-ssis.blogspot.com/2011/04/isnumeric-or-isnumber-expression-is.htmlPlease mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2012 10:44am
hello,
i hate script components, give it no other possibility ???
March 23rd, 2012 11:37am
hello,
i hate script components, give it no other possibility ???
Well read on.... solution B doesn't use Script Component: !ISNULL((DT_I8)myValueToCheck)
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2012 11:39am
I use the following trick in the derived column transform (with <add as new column>) and no script:
(DT_I4)CheckForNumeric == (DT_I4)CheckForNumeric ? 1 : 0
I found the blog post where I found that: http://www.bidn.com/blogs/dustinryan/ssis/915/check-isnumeric-with-derived-column-transform-in-ssis-packageArthur My Blog
March 23rd, 2012 11:43am
Hello,
i found this website, but i didnet understand it. If i copy and paste this row
(DT_I4)CheckForNumeric == (DT_I4)CheckForNumeric ? 1 : 0
and replace checkfornumeric with my attribut nothing happen...
please explain me what i should write in derived column task. my attribute name is nameNB
Did you goto the advance editor and change change the error settings to Ignore Failure?
If yes what will happen if the column will be alphanumeric? The above expression will cause error but since you have set ignore failure to true tis wil be ignored and in the output you will get NULL. If its numeric the condition will be satisfied and the
output will be 1. Note you will never get output as 0, just 1 or NULL.My Blog |
Ask Me |
SSIS Basics
Free Windows Admin Tool Kit Click here and download it now
March 26th, 2012 8:09pm
Hello,
i found this website, but i didnet understand it. If i copy and paste this row
(DT_I4)CheckForNumeric == (DT_I4)CheckForNumeric ? 1 : 0
and replace checkfornumeric with my attribut nothing happen...
please explain me what i should write in derived column task. my attribute name is nameNB
Did you goto the advance editor and change change the error settings to Ignore Failure?
If yes what will happen if the column will be alphanumeric? The above expression will cause error but since you have set ignore failure to true tis wil be ignored and in the output you will get NULL. If its numeric the condition will be satisfied and the
output will be 1. Note you will never get output as 0, just 1 or NULL.My Blog |
Ask Me |
SSIS Basics
March 27th, 2012 2:57am