Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Import Data from SQL Server to Excel table in C#
# Import Data from SQL Server to Excel Table in C#

This repository contains Syncfusion® Excel library examples that illustrates,
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.

* How to import data from SQL Server to Excel in C#
* How to import using query parameters in Excel table
* How to refresh Excel data from a database
## What this sample covers
* Connects to SQL Server using ADO.NET
* Executes SQL queries to retrieve data
* Loads data into an Excel worksheet
* Converts the data range into an Excel Table
* Saves the Excel file without requiring Microsoft Excel

This works without Microsoft Excel Interop.
## Prerequisites
* .NET Framework / .NET
* SQL Server with sample data
* Syncfusion XlsIO NuGet package

## Use cases
* Exporting reports from databases
* Automating Excel report generation
* Creating structured Excel tables for business analysis

This project serves as a simple, production-ready reference for developers looking to integrate SQL Server data with Excel using C#.
Loading