OasisChurch
Technical User
- Mar 28, 2002
- 20
I have a text file exported from a Unisys system that I need to import into SQL Server. In several of the fields that are supposed to be numeric, the text file will actually contain a space for every value instead of a zero "0" or NULL
EX: field1 numeric(5) will contain 5 spaces in the text file. I changed all the numeric fields to varchar in my exsiting table and was hoping to modify that data after loading, however, there are serveral hundred fields and this takes 6 hours. Would it be faster to use an active X script to say "if field is numeric and source is not, add that entry as NULL?
Never written an active X script. is is hard o do?
thanks in advance!
--scott
EX: field1 numeric(5) will contain 5 spaces in the text file. I changed all the numeric fields to varchar in my exsiting table and was hoping to modify that data after loading, however, there are serveral hundred fields and this takes 6 hours. Would it be faster to use an active X script to say "if field is numeric and source is not, add that entry as NULL?
Never written an active X script. is is hard o do?
thanks in advance!
--scott