Skip to content

Commit aeb2411

Browse files
Merge pull request #6 from SyncfusionExamples/1021461-ModifyReadMe
Task(1021461)-Modify the ReadMe file of Import-data-from-sql-server-to-excel-table-in-c-sharp repo
2 parents 755b055 + 2905b02 commit aeb2411

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Import Data from SQL Server to Excel Table in C#
22

3-
This sample demonstrates how to import data from a SQL Server database into an Excel table using C# and Syncfusion XlsIO. It shows a complete workflowfrom establishing a database connection to exporting structured data into a formatted Excel tablemaking it useful for reporting, data analysis, and automation scenarios.
3+
This sample demonstrates how to import data from a SQL Server database into an Excel table using C# and Syncfusion XlsIO. It shows a complete workflow-from establishing a database connection to exporting structured data into a formatted Excel table-making it useful for reporting, data analysis, and automation scenarios. In addition to the basic import process, the sample highlights how developers can work with query parameters, refresh Excel tables to pull updated values, and apply formatting for improved readability. It also illustrates how constant, range, and prompt parameters can be used to filter data dynamically, enabling flexible reporting directly within Excel. By leveraging Syncfusion’s powerful XlsIO library, this project eliminates the need for manual data transfers, supports automation of recurring tasks, and ensures that business users can generate professional Excel reports with minimal effort.
44

55
## What this sample covers
66
* Connects to SQL Server using ADO.NET
@@ -19,4 +19,15 @@ This sample demonstrates how to import data from a SQL Server database into an E
1919
* Automating Excel report generation
2020
* Creating structured Excel tables for business analysis
2121

22-
This project serves as a simple, production-ready reference for developers looking to integrate SQL Server data with Excel using C#.
22+
## Repository Structure
23+
* **Query-Parameters:** Demonstrates how to use constant, range, and prompt parameters in SQL queries bound to Excel tables. This allows developers to filter data dynamically and interactively, making reports more flexible.
24+
* **SQL-Server-To-Excel-Table:** Shows how to establish a direct connection to SQL Server, execute queries, and refresh Excel tables with updated values. This ensures that Excel reports stay synchronized with the underlying database.
25+
26+
## Key Highlights
27+
* **Constant Parameters:** Pass fixed values into SQL queries for repeatable filtering.
28+
* **Range Parameters:** Bind query parameters to Excel cell ranges, enabling dynamic filtering based on user input.
29+
* **Prompt Parameters:** Allow interactive input at runtime, making the solution adaptable to different reporting needs.
30+
* **Refresh Support:** Excel tables can be refreshed to pull the latest data from SQL Server without recreating the workbook.
31+
* **Formatting:** Columns are auto-fitted, and tables are styled to improve readability.
32+
33+
This project serves as a simple, production-ready reference for developers looking to integrate SQL Server data with Excel using C#.

0 commit comments

Comments
 (0)