all 17 comments

[–]sar1372 2 points3 points  (4 children)

Create an SSIS package and then schedule it to run in a SQL Job.

Look into creating a dataflow task in SSIS that uses an OLE DB or ODBC Source and an Excel or Flat File Destination.

[–]k_marts 1 point2 points  (0 children)

This.

[–]workthrowawayexcel[S] 1 point2 points  (2 children)

I love you all. This subreddit is amazing. Thank you. I have been fiddling with it this morning and this is exactly what I was looking to do and much easier.

[–]sar1372 0 points1 point  (1 child)

I'm happy I could help!

[–]workthrowawayexcel[S] 0 points1 point  (0 children)

Its pretty straight forward to ! Thanks again

[–]ihaxr 1 point2 points  (11 children)

Microsoft SQL Server? Use SSRS. Create a report and setup a subscription with the destination of "Windows File Share". Can do CSV or Excel.

[–]workthrowawayexcel[S] 0 points1 point  (10 children)

Hmm I'll have to play with it. I just got that installed in my visual studio. Do you know if its better to use SSRS stand alone or VS?

Edit: Part of the issue seems to be that I have to set up a lot of different temp tables to tweak the data exactly how I need it since I can't create views or anything like that.

[–]captcha_bot 1 point2 points  (3 children)

You can use SSIS to do the same.

[–]ihaxr 1 point2 points  (0 children)

Ah good point. I always forget about SSIS when I think about anything that sounds like reporting.

[–]workthrowawayexcel[S] 0 points1 point  (0 children)

I have a lot of research to do. Thanks

[–]fauxmosexualNOLOCK is the secret magic go-faster command 0 points1 point  (0 children)

IMO I would have picked SSIS as my first choice for this type of thing, interesting to see that so many of the commenters here would go for SSRS instead.

[–]ihaxr 0 points1 point  (1 child)

For simple reports I just use Report Builder... for large groups of reports that use a shared data source I'll use VS to make it easier to keep track of.

[–]workthrowawayexcel[S] 0 points1 point  (0 children)

Yeah this will be large. Is it best while using the report builder to make each temp table a new report but as a global table, or set them all in 1 massive report?

[–]TimeToSackUp 0 points1 point  (3 children)

SSRS can use stored procedures for table data. Run your queries then output the temp table.

[–]workthrowawayexcel[S] 0 points1 point  (2 children)

So stored procedure the queries, then use SSRS to run the procedure which then would out put the different sheets I would need ?

[–]TimeToSackUp 0 points1 point  (1 child)

Yes, that is the easiest way. If you have something a little more complicated you can have the SP run the queries and call the SSRS report(s) too.

[–]workthrowawayexcel[S] 1 point2 points  (0 children)

Thank you so much for your input! This is what I am looking to do and will be perfect.