We have a proprietary web app that has a flowery admin UI, but poor tools for data geeks.
Our data admin runs many SQL queries to answer business questions – these evolve slowly over time but are run frequently. We’d like for him to have a UI to save and re-run them without having to remote-connect the SQL server multiple times daily or open up saved text snippets.
I’m looking for a small codeproject or similar to save me most of the 2-4 days project work to add this admin feature to my project, which uses the following client/server platform:
- ASP.NET MVC (3-4)
- SQL Server (2008)
- Entity Framework (I’d prefer not to add other data access components for this)
- jQuery
http://sqlfiddle.com/ ( Ready web query interface to SQL databases ) is kinda what I’m looking for, except 1) it’s way overkill, and 2) it doesn’t have a UI for naming/saving/loading queries, which is my core requirement.
The tool should:
- Allow textual entering of a previously-composed SQL query in a web browser
- Allow that query to be named and saved
- Allow all saved queries to be listed from a single page
- Allow a saved SQL query to be inspected
- Allow a saved query to be run, with output to a dynamically generated table
- Allow individual saved queries to be deleted
- Possibly enforce a maximum result rows or timeout, just for load-safety
- Possibly prevent data-modification queries
Please let me know if you are aware of any such projects, blog entries, or another related project that makes creating this a no-brainer.
Thank you!
If you have access to reporting services then it sounds like you could definitely make use of it, as long as you’re running it on the same server as the SQL service it’s included in the licensing.
It’s a fairly robust solution, and has a lot of options for report building, and report delivery. There’s a built in interface called the Report Manager, or you can also call the web service directly from your code and deliver back the rendered result in XLS, PDF, DOC and other formats.
You can use either the Report Builder (deployed as a click-once app through the Report Manager interface) or SQL Server Data Tools (older versions are called Business Intelligence Development Studio) for report design.
As I also mentioned, you may find that regardless of all the features in Reporting Services (or SQL Fiddle), your data admin may still want to use SQL Server Management Studio for writing his queries. There’s a lot of functionality in SSMS that I know I would have a hard time doing without…