Execute a Stored Proc in the Background Job

  • Hi,

    I have a SP, which will return rows of data. I want to run this procedure as a nightly batch using the Jobs, and I want to store the result set in a txt file or an excel file where I can access it. Can anyone please help me in how to do this in SQL 2005 Server.

    Thanks

    Suresh

  • Take a look at the information availabe on SQL Server Agent in the Books Online. You can do exactly what you want through there.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply