19
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 implemented It 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:

Full Automated Reporting Tool PG_MSSQL_C#

Embed Size (px)

Citation preview

Page 1: Full Automated Reporting Tool PG_MSSQL_C#

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:

Page 2: Full Automated Reporting Tool PG_MSSQL_C#
Page 3: Full Automated Reporting Tool PG_MSSQL_C#
Page 4: Full Automated Reporting Tool PG_MSSQL_C#

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

Page 5: Full Automated Reporting Tool PG_MSSQL_C#

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

Page 6: Full Automated Reporting Tool PG_MSSQL_C#
Page 7: Full Automated Reporting Tool PG_MSSQL_C#

Now I’m ready to save my report:

Page 8: Full Automated Reporting Tool PG_MSSQL_C#

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

Page 9: Full Automated Reporting Tool PG_MSSQL_C#

One more report:

Page 10: Full Automated Reporting Tool PG_MSSQL_C#
Page 11: Full Automated Reporting Tool PG_MSSQL_C#

And some reports in MSSQL as well:

Page 12: Full Automated Reporting Tool PG_MSSQL_C#
Page 13: Full Automated Reporting Tool PG_MSSQL_C#

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

Page 14: Full Automated Reporting Tool PG_MSSQL_C#

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 )

Page 15: Full Automated Reporting Tool PG_MSSQL_C#

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

Code Samples:

Page 16: Full Automated Reporting Tool PG_MSSQL_C#

Data based on Report ID:

return file_name; // at the end}

Page 17: Full Automated Reporting Tool PG_MSSQL_C#

Run Selected Report:

Fill Next Reports gridView