I am trying to write a stored procedure where i select a bacode field from a table then convert the barcode to numeric (from Varchar).if i get an error in converting it is because their was an error when scanned(non nUmeric Characters) or it wasnot sacanned and i want to output the record id to an error table. if it succeeds in the conversion i want to strip out the last two digits and save them and the third last digit and save, that is if their is 16 digits in the barcode otherwise another error into the error table.
Can anyone help with examples.
Can anyone help with examples.