Turning query output into csv file automatically

  • I have around 20 queries that run each week (in SQL Query Analyser) and each of these queries creates a table which I currently have to manually save to my PC as a csv.  Is there a way I can run the query automatically so that it automatically creates a csv file.  Better still, is there a way that I can run all 20 queries with one batch job to create all 20 tables. 

    The csv table names remain the same.

    I am new to SQL Server and know this is possible but don't know how!

     

  • A scheduled DTS package should do this for you - it can be designed to create all 20 csv files, one after another and run automatically every week. As you're new to SQL Server, your knowledge of DTS is maybe a little thin also. Try looking on http://www.sqldts.com for a kick start.

    Regards

    Phil


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

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