We have a winform application that needs to display some results calculated on the DB that exists on a server.
In the current solution, we have a VPN connection that connects us to the server database, we query the data from the server DB using a normal SQLConnection . We get the data, then we do the calculation at the client side For bandwidth utilization, we want the calculation to be done at the server side, and the end result is just sent to the user.
so the client just executes
double[] getResults(tableName t, ColumnName c, Key k)
{ //execute at the server
return results;
}
What is the simplest way to acheive that? Please give me details
thank you