Full Automated Reporting Tool PG_MSSQL_C#

Preview:

Citation preview

Full Automated Reporting Tool for PgAdmin ans MSSQL Server (C#)

Intro:

This Reporting Tool Automates our reports from PostgreSql and MSSQL servers simultaneously.The most important advantage is that we don’t need a server for the this Tool, it could be run on a workstation desktop, laptop.

Also no need for scheduled tasks for each report, this tool runs multiple reports at the same time!

The Tool will be used to retrieve data only and no data manipulation can be implementedIt has also a helper, a Report Builder where we can build our reports -which will be run later by the Reporting Tool-, Edit, or Delete them

Technologies used: C#, WinForm, DataGridView, Ado.Net, plSql and T-Sql

In this demo I'm going to create some reports need to be shceduled. The reports will be retrieving data from MS SQL and PostgresSql:

The Report Bulider:

Now let’s create the Reporting Database first which will be use by the Reproting Tool

Well let’s create so,me test reports and see how will they be handled by the Reporting Tool:

Now I’m ready to save my report:

Every 2 hours starts at 9:30 am ends at 6:30 pm:

One more report:

And some reports in MSSQL as well:

Just a few words about the last TabPage, Report Manager helps to deactivate, reactivate, reschedule, rename, revise the query and delete reports.You need first to login then you can do eveything mentioned above

The Reporting Tool:

We’re excpecting two reports to be run at 12:00 and please note one of them is PL and the other one is MS and both should be sent at 12:00

But you can also select a report and run it manually using Run Selected Button (while we wait )

And The reports ran automatically at 12:00 and here we go

Code Samples:

Data based on Report ID:

return file_name; // at the end}

Run Selected Report:

Fill Next Reports gridView

Recommended