how to code get the data to mssql using ESP8266 wifi module with htu21d sensor

Here i know to do using ethernet shield w5100 and htu21 sensor but i don't know how to change it to ESP8266 wifi module i have the coding for htu21d sensor and sample code for ethernet shield w5100 with htu21d