Hi people
i wont make out i know anything towards SQL except general maintenace when it comes to using and changing data like i am trying to test i am going to need help
i have an online CSV format direct from this website: This is the NON-CSV version:
the CSV page is located here:
ths displays a CSV format of the data i want to import to SQL
this updates every 30minutes
i would like to create a table which will import this table on say a 15 minute cycle so i do not miss the update of figures as they are business critical to our production
i am guessing for this i need to create a job? or some sort of script to run and retrieve this information to update my table - i am happy to keep all the history so the table can grow as large as it like so users can create reports on the current data
you may say...just let them browse to the website themselve....2 reasons why not:
bandwidth: our connection is not great so one server importing this data compared to 200odd users continuously refreshing helps
Internet Control: in production areas we do not allow internet access - i could create policies on the firewall to allow only to one website but keeping it all in SQL is an alot safer option
to start with i will make a table called bmreports which seems obvious
second: create the required columns - MID / Provider / Settlement Date / Settlement Period / Price / Volume
i do not really want the MID or Provider columns but i guess its easier to import the whole lot
third: i will set the correct data type for each column so the import will work correctly
forth: this is where i am stuck on the importing
here is a paste of the CSV data below if you do not wish to go the the websites - as it is just displayed on a webpage rather than an instant downloadable CSV i do not know if this causes problems?
HDR,MARKET INDEX DATA
MID,APXMIDP,20101222,1,42.46,418.500
MID,APXMIDP,20101222,2,42.63,477.000
MID,APXMIDP,20101222,3,41.11,332.500
MID,APXMIDP,20101222,4,41.04,305.000
MID,APXMIDP,20101222,5,41.03,399.000
MID,APXMIDP,20101222,6,42.36,516.000
MID,APXMIDP,20101222,7,42.67,291.000
MID,APXMIDP,20101222,8,41.28,223.000
MID,APXMIDP,20101222,9,40.90,221.000
MID,APXMIDP,20101222,10,40.82,224.500
MID,APXMIDP,20101222,11,44.17,379.000
MID,APXMIDP,20101222,12,43.71,381.500
MID,APXMIDP,20101222,13,45.98,352.500
MID,APXMIDP,20101222,14,44.41,741.500
MID,APXMIDP,20101222,15,49.59,829.500
MID,APXMIDP,20101222,16,48.61,992.000
MID,APXMIDP,20101222,17,49.57,742.000
MID,APXMIDP,20101222,18,52.10,783.500
MID,APXMIDP,20101222,19,60.40,608.000
MID,APXMIDP,20101222,20,63.82,603.500
MID,APXMIDP,20101222,21,72.94,958.000
MID,APXMIDP,20101222,22,76.09,1053.500
MID,APXMIDP,20101222,23,82.17,648.500
MID,APXMIDP,20101222,24,81.76,693.500
MID,APXMIDP,20101222,25,81.96,610.000
MID,APXMIDP,20101222,26,80.79,550.000
MID,APXMIDP,20101222,27,74.17,695.500
MID,APXMIDP,20101222,28,74.99,663.000
MID,APXMIDP,20101222,29,75.16,658.500
MID,APXMIDP,20101222,30,73.98,687.000
MID,APXMIDP,20101222,31,62.79,1010.000
MID,APXMIDP,20101222,32,64.67,1020.500
MID,APXMIDP,20101222,33,76.82,718.000
MID,APXMIDP,20101222,34,87.44,931.000
MID,APXMIDP,20101222,35,83.56,840.500
MID,APXMIDP,20101222,36,81.63,822.500
MID,APXMIDP,20101222,37,79.18,888.500
MID,APXMIDP,20101222,38,74.13,1036.500
MID,APXMIDP,20101222,39,58.17,1403.000
MID,APXMIDP,20101222,40,56.47,1173.500
MID,APXMIDP,20101222,41,55.80,1005.000
MID,APXMIDP,20101222,42,54.15,1332.000
MID,APXMIDP,20101222,43,49.87,1555.500
MID,APXMIDP,20101222,44,49.81,1307.500
MID,APXMIDP,20101222,45,48.30,1517.500
MID,APXMIDP,20101222,46,47.52,1936.500
MID,APXMIDP,20101222,47,43.44,574.000
MID,APXMIDP,20101222,48,42.97,276.000
MID,APXMIDP,20101223,1,42.96,262.500
MID,APXMIDP,20101223,2,42.99,401.000
MID,APXMIDP,20101223,3,42.53,142.500
MID,APXMIDP,20101223,4,42.30,210.500
MID,APXMIDP,20101223,5,41.58,181.500
MID,APXMIDP,20101223,6,42.93,159.000
MID,APXMIDP,20101223,7,40.54,453.500
MID,APXMIDP,20101223,8,40.79,427.000
MID,APXMIDP,20101223,9,40.51,467.000
MID,APXMIDP,20101223,10,40.52,484.500
MID,APXMIDP,20101223,11,41.11,341.000
MID,APXMIDP,20101223,12,41.46,327.000
MID,APXMIDP,20101223,13,45.07,550.500
MID,APXMIDP,20101223,14,44.21,757.500
MID,APXMIDP,20101223,15,45.89,606.000
MID,APXMIDP,20101223,16,46.56,436.500
MID,APXMIDP,20101223,17,46.86,335.000
MID,APXMIDP,20101223,18,48.96,419.500
FTR,66
i do not know what FTR,66 mean at the end so these need to be ignored as i guess it would imports bad data into the table
any help on this would be great - even a step by step guide if you are feeling generous
i have a test server/database ready to go but i have been through so many websites and still not found a working answer
even to know if it was possible that would be great
Cheers
CCENT, CCNA
MCP, MCSA
Comptia: Network Essentials, Security +, A+
i wont make out i know anything towards SQL except general maintenace when it comes to using and changing data like i am trying to test i am going to need help
i have an online CSV format direct from this website: This is the NON-CSV version:
the CSV page is located here:
ths displays a CSV format of the data i want to import to SQL
this updates every 30minutes
i would like to create a table which will import this table on say a 15 minute cycle so i do not miss the update of figures as they are business critical to our production
i am guessing for this i need to create a job? or some sort of script to run and retrieve this information to update my table - i am happy to keep all the history so the table can grow as large as it like so users can create reports on the current data
you may say...just let them browse to the website themselve....2 reasons why not:
bandwidth: our connection is not great so one server importing this data compared to 200odd users continuously refreshing helps
Internet Control: in production areas we do not allow internet access - i could create policies on the firewall to allow only to one website but keeping it all in SQL is an alot safer option
to start with i will make a table called bmreports which seems obvious
second: create the required columns - MID / Provider / Settlement Date / Settlement Period / Price / Volume
i do not really want the MID or Provider columns but i guess its easier to import the whole lot
third: i will set the correct data type for each column so the import will work correctly
forth: this is where i am stuck on the importing
here is a paste of the CSV data below if you do not wish to go the the websites - as it is just displayed on a webpage rather than an instant downloadable CSV i do not know if this causes problems?
HDR,MARKET INDEX DATA
MID,APXMIDP,20101222,1,42.46,418.500
MID,APXMIDP,20101222,2,42.63,477.000
MID,APXMIDP,20101222,3,41.11,332.500
MID,APXMIDP,20101222,4,41.04,305.000
MID,APXMIDP,20101222,5,41.03,399.000
MID,APXMIDP,20101222,6,42.36,516.000
MID,APXMIDP,20101222,7,42.67,291.000
MID,APXMIDP,20101222,8,41.28,223.000
MID,APXMIDP,20101222,9,40.90,221.000
MID,APXMIDP,20101222,10,40.82,224.500
MID,APXMIDP,20101222,11,44.17,379.000
MID,APXMIDP,20101222,12,43.71,381.500
MID,APXMIDP,20101222,13,45.98,352.500
MID,APXMIDP,20101222,14,44.41,741.500
MID,APXMIDP,20101222,15,49.59,829.500
MID,APXMIDP,20101222,16,48.61,992.000
MID,APXMIDP,20101222,17,49.57,742.000
MID,APXMIDP,20101222,18,52.10,783.500
MID,APXMIDP,20101222,19,60.40,608.000
MID,APXMIDP,20101222,20,63.82,603.500
MID,APXMIDP,20101222,21,72.94,958.000
MID,APXMIDP,20101222,22,76.09,1053.500
MID,APXMIDP,20101222,23,82.17,648.500
MID,APXMIDP,20101222,24,81.76,693.500
MID,APXMIDP,20101222,25,81.96,610.000
MID,APXMIDP,20101222,26,80.79,550.000
MID,APXMIDP,20101222,27,74.17,695.500
MID,APXMIDP,20101222,28,74.99,663.000
MID,APXMIDP,20101222,29,75.16,658.500
MID,APXMIDP,20101222,30,73.98,687.000
MID,APXMIDP,20101222,31,62.79,1010.000
MID,APXMIDP,20101222,32,64.67,1020.500
MID,APXMIDP,20101222,33,76.82,718.000
MID,APXMIDP,20101222,34,87.44,931.000
MID,APXMIDP,20101222,35,83.56,840.500
MID,APXMIDP,20101222,36,81.63,822.500
MID,APXMIDP,20101222,37,79.18,888.500
MID,APXMIDP,20101222,38,74.13,1036.500
MID,APXMIDP,20101222,39,58.17,1403.000
MID,APXMIDP,20101222,40,56.47,1173.500
MID,APXMIDP,20101222,41,55.80,1005.000
MID,APXMIDP,20101222,42,54.15,1332.000
MID,APXMIDP,20101222,43,49.87,1555.500
MID,APXMIDP,20101222,44,49.81,1307.500
MID,APXMIDP,20101222,45,48.30,1517.500
MID,APXMIDP,20101222,46,47.52,1936.500
MID,APXMIDP,20101222,47,43.44,574.000
MID,APXMIDP,20101222,48,42.97,276.000
MID,APXMIDP,20101223,1,42.96,262.500
MID,APXMIDP,20101223,2,42.99,401.000
MID,APXMIDP,20101223,3,42.53,142.500
MID,APXMIDP,20101223,4,42.30,210.500
MID,APXMIDP,20101223,5,41.58,181.500
MID,APXMIDP,20101223,6,42.93,159.000
MID,APXMIDP,20101223,7,40.54,453.500
MID,APXMIDP,20101223,8,40.79,427.000
MID,APXMIDP,20101223,9,40.51,467.000
MID,APXMIDP,20101223,10,40.52,484.500
MID,APXMIDP,20101223,11,41.11,341.000
MID,APXMIDP,20101223,12,41.46,327.000
MID,APXMIDP,20101223,13,45.07,550.500
MID,APXMIDP,20101223,14,44.21,757.500
MID,APXMIDP,20101223,15,45.89,606.000
MID,APXMIDP,20101223,16,46.56,436.500
MID,APXMIDP,20101223,17,46.86,335.000
MID,APXMIDP,20101223,18,48.96,419.500
FTR,66
i do not know what FTR,66 mean at the end so these need to be ignored as i guess it would imports bad data into the table
any help on this would be great - even a step by step guide if you are feeling generous
i have a test server/database ready to go but i have been through so many websites and still not found a working answer
even to know if it was possible that would be great
Cheers
CCENT, CCNA
MCP, MCSA
Comptia: Network Essentials, Security +, A+