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
VulpesPosted Dec 29, 2011, 4:35 AM
Rajkumar RPosted Dec 29, 2011, 3:51 AM
Pravin GhadgePosted Dec 29, 2011, 2:41 AM
Just replace
dr("SAVINGS")
with (dr("SAVINGS") ==null?"0":dr("SAVINGS"))
It may help u.