Question

We currently have a good deal of usage information being tracked in a SQL Server 2008 database. However, it has been decided to not spend the time to develop any sort of UI to interface with this data in our current admin system, and rather just provide a link to an Excel document with the information from these tables.

The link would be displayed on an ASP.NET page.

I have googled around for a quick and easy way to do this -- this seems like the kind of thing that would already be taken care of. I find a million different articles on ten thousand different technologies related to this.

Given that I want to do this from code rather than by using SQL Server Management Studio or some other tool, what is the simplest/fastest way to offer up-to-date Excel spreadsheets to users generated from our SQL Server 2008 database?

Was it helpful?

Solution

You can do this in SQL Server Management Studio. No C# required. Right-click on the database, ORIGIN: SQL Server database, DESTINATION: Excel and supply file path, write your query (or specify tables/views), and save as a SSIS package. You can then schedule the SSIS package to run on whatever schedule is needed. You can then expose the file or directory via a IIS vdir. Is there a reason that you need to do this from code given that you can set it up as a scheduled job?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top