1

Alright guys, this should be a very simple request. I'd like to run a query (IE Select * from tablex) every night and have it automatically output to a text file on the same system.

Thanks

1
  • Have a look at SSIS packages for Standard+ installations, or Windows Task Scheduler and SQLCMD for Express editions (or as alternative). Commented Mar 8, 2011 at 21:33

2 Answers 2

11

Create a new SQL Server Agent job, in the step put in your SELECT statement. In Advanced, tell it to output to a file. Done.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for answering this in the scope of the question, rather than recommending something else.
1

Look at bcp.exe scheduled via Windows for possibly the simplest way...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.