문제

I need to execute a query at regular intervals in my server. The query is to select a particular date from a table in my database, check it with the current date, and if current date is higher then do some particular tasks like inserting values to another table. If current date is lower than the selected date value then do nothing. How can this be achieved? Is there any possible way of doing this using trigger or by using cron jobs. My server is Microsoft SQL Server 2012 (SP1) - 11.0.3393.0 (X64). I have done the server side code for my android application in C#.net. I'm new to the world of C#.net and SQL queries. Can someone please help me out in this matter.

도움이 되었습니까?

해결책

You can do this with SQL server agent, more details can be found in http://technet.microsoft.com/en-us/library/ms189237.aspx

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top