Is it possible to schedule the SQL database update?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Botham Ruosh
    New Member
    • Sep 2018
    • 1

    Is it possible to schedule the SQL database update?

    Hi All,

    We have a program which will generate output dynamically, after each minute, in excel files, the requirement is to upload these files to SQL database automatically.
    Is it possible for SQL server to pick the files from a specific folder and write the database tables after each minute?

    Thanks in advance.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    SQL Server comes with SQL Server Agent, you can use it to schedule jobs.

    Comment

    • nitish7503
      New Member
      • Nov 2018
      • 1

      #3
      You can create a scheduler in User Agent.

      Exec usp_exportdata

      it will automatically replace previous data in Excel file.


      Create proc usp_exportdata
      As
      Begin
      SELECT * INTO tblCustomerDeta ils(nolock)
      FROM OPENROWSET('Mic rosoft.ACE.OLED B.12.0',
      'Excel 12.0; Database=C:\Exc el\Spreadsheet. xls; HDR=YES; IMEX=1',
      'SELECT * FROM [Sheet1$]');

      End

      Comment

      Working...