摘要:
第一步:新建一个Windows服务添加Microsoft SQLDMO Object Library引用使用Timer定时publicpartialclassService1:ServiceBase{Timertimer1=newTimer();publicService1(){InitializeComponent();timer1.Interval=60000;//3600000;timer1.Enabled=true;timer1.Elapsed+=newSystem.Timers.ElapsedEventHandler(timer1_Tick);}protectedoverridevo 阅读全文