Link to home
Start Free TrialLog in
Avatar of dodgerfan
dodgerfanFlag for United States of America

asked on

Run a C# funtion outside of the application

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.
SOLUTION
Avatar of Najam Uddin
Najam Uddin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial