I have a SQL server DB table that has data in nvarchar fields like this:
InspecReportNumber Date Lot Qty DispDeQty DispSoQty DispRewQty DispScQty DispRetQty DispUseQty
6007 8/1/2002 100%
6008 8/1/2002 10
6009 8/2/2002 50
6010 8/2/2002 as needed 5
6011 8/2/2002 216 216
6012 8/2/2002 105 1 104
6013 8/2/2002 100% 100
6014 8/2/2002 21 21
6015 8/5/2002 85 all 25
6016 8/5/2002 44
6017 8/5/2002 300
6018 8/5/2002 103 103 1
6019 8/5/2002 10
6020 8/6/2002 6 6 1 5
I want to convert the disp* fields from nvarchar to int data types, but before I do, I want to replace all no-numeric data with the number in the Lot_Qty field. Does anyone have a method for doing this?
Thanks,
Keith
InspecReportNumber Date Lot Qty DispDeQty DispSoQty DispRewQty DispScQty DispRetQty DispUseQty
6007 8/1/2002 100%
6008 8/1/2002 10
6009 8/2/2002 50
6010 8/2/2002 as needed 5
6011 8/2/2002 216 216
6012 8/2/2002 105 1 104
6013 8/2/2002 100% 100
6014 8/2/2002 21 21
6015 8/5/2002 85 all 25
6016 8/5/2002 44
6017 8/5/2002 300
6018 8/5/2002 103 103 1
6019 8/5/2002 10
6020 8/6/2002 6 6 1 5
I want to convert the disp* fields from nvarchar to int data types, but before I do, I want to replace all no-numeric data with the number in the Lot_Qty field. Does anyone have a method for doing this?
Thanks,
Keith