Can someone tell me how do I update/modify SQL Server database from using info path form with code?

Currently I'm using InfoPath to receive data from SQL database.

Thank you

Detailed help will be highly appreciated.