The best you can do is send an AJAX request to the server and then execute that request using the server side code.
In this case, you can use jQuery.post () .
Edit
Get AJAX Review Read this
Read this to get and view AJAX methods in jQuery.
Write server-side logic to execute the SQL command on the page. Then, using AJAX, a request is issued to this page.
Code example
$(function(){
$("#updateSal").click(function(){
var empID = "32";
$.post("test.aspx", { EmpID: empID},
function(data){
alert("Return data" + data);
});
return false;
});
});