Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

.net in script component

$
0
0
hi,

my table field is getting value from file,if * is there, then it null.

now in my script component ,

Select Case (segmentcode.ToUpper())

            Case Segments.EMP.ToString.ToUpper()
                Row.empno = Convert.ToInt32(SegmentValue(arrLine, 1))
                Row.empname = SegmentValue(arrLine, 2)
            --    Row.salary_IsNull = Convert.ToInt32(SegmentValue(arrLine, 3))
                Row.manager = SegmentValue(arrLine, 4)

if you see here ,salary is null in file,means it has *,i need to put blank in my table.

if i run this script ,i am getting error,because of third line,  Row.salary_IsNull = Convert.ToInt32(SegmentValue(arrLine, 3))

how to handle this

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>