Hello Guys,
I'm currently constructing a ColdFusion web application that recieves CSV data in a string passed in through a webservice every few minutes and I've been looking for the most efficient method to get it into the database.
Now DTS could be an option I guess but to be honest I'd rather avoid it if possible by passing the CSV string into a stored proc, does that sound like somthing i could achieve? The file csv content looks somthing like this:
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:00:00, 1
GF:34:00:3F:FD, 6, 2, 2007-01-01 13:01:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:04:00, 1
GF:34:00:3F:FD, 6, 4, 2007-01-01 13:08:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:10:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:20:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:22:00, 1
GF:34:00:3F:FD, 6, 5, 2007-01-01 13:26:00. 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:29:00, 1
GF:34:00:3F:FD, 6, 5, 2007-01-01 13:29:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:30:00, 1
GF:34:00:3F:FD, 6, 2, 2007-01-01 13:32:00, 1
Ideally this data would be placed into two tables, the first table would store all the MAC address’s that are listed in the first column of the CSV, the other elements of the log would then be stored in a second table which would reference the MAC address using a foreign key.
I’d be interested to hear your thoughts, these would most likely come in through the web service a few times an hour and be perhaps a hundred records long at tops.
Thanks,
Rob
I'm currently constructing a ColdFusion web application that recieves CSV data in a string passed in through a webservice every few minutes and I've been looking for the most efficient method to get it into the database.
Now DTS could be an option I guess but to be honest I'd rather avoid it if possible by passing the CSV string into a stored proc, does that sound like somthing i could achieve? The file csv content looks somthing like this:
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:00:00, 1
GF:34:00:3F:FD, 6, 2, 2007-01-01 13:01:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:04:00, 1
GF:34:00:3F:FD, 6, 4, 2007-01-01 13:08:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:10:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:20:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:22:00, 1
GF:34:00:3F:FD, 6, 5, 2007-01-01 13:26:00. 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:29:00, 1
GF:34:00:3F:FD, 6, 5, 2007-01-01 13:29:00, 1
GF:34:00:3F:FD, 6, 1, 2007-01-01 13:30:00, 1
GF:34:00:3F:FD, 6, 2, 2007-01-01 13:32:00, 1
Ideally this data would be placed into two tables, the first table would store all the MAC address’s that are listed in the first column of the CSV, the other elements of the log would then be stored in a second table which would reference the MAC address using a foreign key.
I’d be interested to hear your thoughts, these would most likely come in through the web service a few times an hour and be perhaps a hundred records long at tops.
Thanks,
Rob