Jenkins Pipeline to Excel Spreadsheet - sql

I have a pipeline which runs sql counts everyday as part of regression testing, I would like to be able to export the results of each build into an excel document where the results can be stored and compared, is this possible?
Thanks in advance

Related

Generate automatic SQL reports and output them to Google sheets

Currently, I'm running several reports using SQL copying the data to Google sheets, amending said data to generate daily stats.
Most of the reports I run using SQL have the same date range.
If it helps I can post a couple of the SQL reports.
I'm hoping there's a way to automate this?
You can use Google Apps Script to pull data from SQL to Google Sheets and you can automate it by adding a time-driven trigger to run depending on how frequent you want it to.
References
Installable Trigger(Apps Script)
How to Retrieve SQL Data Automatically Using Google Sheets Script

Direction to create a frontend/GUI for simple SQL query?

I work on a team that creates adhoc SQL queries for a large database for users that are performing research. These searches are done with Excel via ODC files with ODBC connection.
I'm looking for a program / best language suggestion to create an app for users to run the simpler queries themselves that they request. Basically a window that has a few text boxes for the variables as well as some date range boxes. Runs query and exports to a spreadsheet etc.
So far I've only found tools that run the raw SQL query code itself.
Thanks in advance. -Steve

Automate export from MS Excel to MS SQL Server

Is there a way to export data from a MS Excel file into a SQL Server table automatically? Maybe this is done using a script of some kind.
If it's not possible to be completely automated, perhaps there's a way to do it using minimal user effort. (For example clicking a button or link)
There is a MS Excel spreadsheet where the data keeps having to be manually exported to SQL Server.
I've done this using Excel to Access before, but not too certain on how to do it using SQL Server (MS).
*MS Office 2013 and MS SQL Server 2012.
The other answers are ok. I just want to suggest an additional alternative.
If it is just 1 specific Excel file that is frequently updated, I would consider using VBA. For example, write some VBA code in Excel that uploads changes to the database when the spreadsheet is saved (or the user presses a button).
The problem with using a scheduled job is that Excel is basically a single user application. If someone has the spreadsheet open or is doing something in it when the scheduled job runs or moves the spreadsheet to a different folder, then the job may fail.
This way you also get the updated data in your database in something close to real time instead of waiting on a job to run. This might take more time and effort to set up though than some of the other answers.
You can use SQL Server Agent to run a scheduled job that imports data from an Excel worksheet into a SQL Server table.
The import is relatively straightforward to do using Integration Services, but if you've not used either of these before you might need to do some reading up on it.
You can do the following:
You need to create an SSIS package and then create a job to run the package.
The easiest way to create the SSIS package is with "Import and Export Data" tool of SQL Server. It has a nice step by step wizard.
You set everything it asks you from the source and the destinations. Until you get here, select the "Save SSIS Package":
Then you only have to create the job to run it :)

TFS 2015 Excel Pivot Table Reporting For Test Plan/Execution

In the past, using TFS 2010/2012 I have been able to create extensive Excel Pivot Table reports for all things QA including Test Plan execution by Executed By, Test Case Priority, Execution trends, etc.
Now at a different place we recently implemented TFS2015 using the Scrum template. With this TFS instance using the Excel reports there are no possible report fields related to test case execution or test runs. I can use the web based charts within TFS-TEST but they are extremely limited, partially broken and the only trend report possible is from SSRS. The SSRS Test Plan Progress report is a pretty graph but it provides limited data points.
Has anyone figured out how to pull advanced data reports on test plans within TFS2015 or is this related to how our instance was implemented? I'm usually an advanced google-er and have had zero luck.
The Excel Reports can archive the feature you want. Reports you may need:
Test Team Productivity Excel Report
Test Team Progress Excel
Report
Test Plan Progress Excel Report

Export dynamic query results to different spreadsheets in an excel file

I have a validation tool that needs to be run ~300 times for various inputs. I'm planning to use a cursor to loop through all the required inputs (as the validation query is created dynamically)
I've been asked to export all this information to an excel file (separated into unique sheets for each of the ~300 resulsets.).
From what I've read about SSIS, it isn't able to export dynamically created queries into an excel file (if I'm mistaken, please correct me!).
I've also tried using dbo.sp_OACreate, but the security settings on the server I'm using disallow me from doing so.
Is there another way to export my ~300 resultsets into an excel spreadsheet programmatically?
It would seem that there is no way to do this using sql server 2012. I ended up using a CLR program to query and export the data to an excel spreadsheet.
I used datasets to run my queries and the Microsoft.Office.Interop.Excel library to export it to a spreadsheet.