I have a ASP.Net web application, with c# code behind. The underlying database is SQL Server 2012. I have a web page that I can open with a button on it. Clicking that button runs a c# function that move data from a flat file to the SQL Server database. It works great. The problem is that you have to open the website and go to that page to click the button to run the code. When originally written, this was something that would need to be done very infrequently. Now I need to do it daily. I want to schedule something to run at a certain time after normal business hours. How can I schedule to run a c# function I have written as part of a web application? Can you run c# code from SQL Server in a stored procedure? Is this something that needs scripting? If so, I have no scripting experience, so I'm not sure where to start. Any help is appreciated. I'm using Visual Studio 2012, SQL Server 2012 on Windows Server 2012 R2.