I have a previously created table that is populated using a BULK insert from a user selected file. This table has only one field, a list of document numbers.
I need to go through this list/table where the number of records would vary between 200-500 items and check that the field is a valid number, no letters, spaces or strange non-numeric characters. The "valid" numbers would then be inserted into another table for further processing. The first option I thought of was pulling all the records down and using PHP/ASP some script to check for a valid number. Then I thought that might not be the best idea which brings me here.
My question is would it be better to create a stored procedure to do the checking and inserting? Going through record by record with a script seems like the hard way, but I am not sure. I have never created a SP from scratch only slightly modified them before so I could be getting into something much more difficult and beyond my skill level.
If SPs are the way to go could you point me in the direction of some good websites to help me get started?
Thanks!
I need to go through this list/table where the number of records would vary between 200-500 items and check that the field is a valid number, no letters, spaces or strange non-numeric characters. The "valid" numbers would then be inserted into another table for further processing. The first option I thought of was pulling all the records down and using PHP/ASP some script to check for a valid number. Then I thought that might not be the best idea which brings me here.
My question is would it be better to create a stored procedure to do the checking and inserting? Going through record by record with a script seems like the hard way, but I am not sure. I have never created a SP from scratch only slightly modified them before so I could be getting into something much more difficult and beyond my skill level.
If SPs are the way to go could you point me in the direction of some good websites to help me get started?
Thanks!