Hi,
(Infosphere Warehouse v9.5.1)
Encountered a problem migrating a single partition to multi-partition
Database.
Got a SQL error (don't have the exact code but it was something like
SQL2740 reason code 71) when
trying to create a scalar SQL function that has a CALL to a SP. error
message said "this is not allowed
in a partitioned environment".
The call to the SP is only used as a mechanism to eat the SQL
exception when trying to convert a string
that contains non numeric characters to a float, and instead simply
returns Null rather than throwing a SQL
error i.e ignore value (data can be dirty).
An alternative would be to convert(translate) all non numeric chars in
the string first, but this is clumsy as a list of all possible
non numeric characters would be needed.
Another alternative would be to check that the string only contains
numeric characters, but we can't think of a way of doing this that
wouldn't throw an error or incur siginificant overhead checking each
character individually.
any thoughts welcomed...