1
Thanks alot buddy. this worked.
Now one more thing is that barcodes are different and as above code i tried using biginteger as some of the bar codes exeeds the int range. tired biginteger but its giving me error. i have added the reference dll and using system numerics.
on int below is error
The conversion of the nvarchar value '8964000977736' overflowed an int column.
changed int to biginteger in code and (changed in SQL table also)
Specified cast is not valid.