Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
daman
Yak Posting Veteran
72 Posts |
Posted - 2007-11-23 : 15:46:21
|
| My input would have #N/A or #NUM, #VALUE because I read them from CSV file.I would read that input into a table with float type.So if I read in2.3#N/A3.2I would like to get it stored in my table as2.3NULL3.2or whatever format is preferred so an error is represented. |
|
|
dataguru1971
Master Smack Fu Yak Hacker
1464 Posts |
Posted - 2007-11-23 : 16:04:58
|
When you are reading it in transform using IsNumeric() = 1If IsNumeric([Field]) =1 then [Field]if it isn't numeric it will NULL Poor planning on your part does not constitute an emergency on my part. |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-11-23 : 20:51:54
|
nullif([col], '#N/A') KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|
|