You will need to create a web service to handle the SQL input.
I have created something similar using WCF REST. My netduino posts a JSON string to my service and then the service saves the values in the database.
Would you mind posting your solution (never done anything with REST or JSON before)