This project is designed to manage and execute SQL queries, providing results in various formats and sending them via email. The system consists of two main parts: the Server and the Client. The Server processes and sends requests from clients, handles scheduled queries, and performs multi-tasking email operations. The Client allows users to manage SQL queries, export results, and send them via email.
- Add SQL Query: Add new SQL queries to the system.
- Update SQL Query: Update existing SQL queries.
- Copy SQL Query: Duplicate existing SQL queries.
- Delete SQL Query: Remove SQL queries from the system.
- Add Parameters to SQL Query: Add parameters to SQL queries.
- Assign Values to Parameters: Assign values to the parameters in SQL queries.
- Scheduled Queries: Schedule queries to run at specific intervals.
- Multi-Tasking Email Operations: Send emails with query results simultaneously.
- Export Query Results: Export the results of SQL queries.
- As Excel: Export results as Excel files.
- As HTML Table: Export results as HTML tables.
- Send Query Results via Email: Send the results of SQL queries via email.
- As Excel: Send results as Excel attachments.
- As HTML Table: Send results as HTML tables in the email body.
- Select Email Addresses: Choose email addresses to send the query results to.
- Admin Panel: Admin users have full authority to manage users, queries, and schedules.
The system includes a mini database to store:
- SQL queries
- Parameters and their values
- Schedules for running queries
- User information and permissions
- Admin User: Has full authority to manage all aspects of the system.
- Regular Users: Can change parameters, duplicate queries, and export results as Excel files.
- .NET Framework 4.8
- SQL Server or any other supported database
-
Clone the repository:
- Open the solution in Visual Studio.
-
Restore NuGet packages.
-
Build the solution.
- Restore
query_poster.bak - Configure the database connection string in
app.config. - Set up email settings for sending query results.
- Start the server application.
- Launch the client application.
- Open the Query Editor.
- Enter the SQL query and save.
- Select the query from the list.
- Make the necessary changes and save.
- Select the query to copy.
- Use the copy function to duplicate the query.
- Select the query to delete.
- Use the delete function to remove the query.
- Open the Parameter Editor.
- Add parameters and assign values.
- Run the query.
- Choose the export format (Excel or HTML).
- Save the exported file.
- Run the query.
- Choose the email format (Excel or HTML).
- Enter the recipient email addresses.
- Send the email.
- Open the Scheduler.
- Set the schedule for the query.
- Save the schedule.
For any questions or issues, please contact [ibrahimyusufcosgun@gmail.com].


