From the above statement i want convert this(" + dr("SAVINGS") + ") from varchar to numeric
here i m getting data from XML file, then i m importing into database. Here the savings field i m getting null value from XML FILE but in the backend(sqlserver) savings field defined as numeric. While i try to insert null value into DB i m getting error (ie., error converting datatype) so i need to convert here from varchar to numeric
Sorry for interrupt
Post solution for this post Thanks in advance

Pravin GhadgeRank #1,340 · 1.3K reputationPosted Dec 28, 2011, 9:41 PM EST
Just replace
dr("SAVINGS")
with (dr("SAVINGS") ==null?"0":dr("SAVINGS"))
It may help u.
Rajkumar R175 reputationPosted Dec 28, 2011, 10:51 PM EST
VulpesRank #55 · 29.2K reputationPosted Dec 28, 2011, 11:35 PM EST