Answers for "export sql data to excel c#"

C#
0

c# export datatatble to excel

using ClosedXML.Excel;
XLWorkbook wb = new XLWorkbook();
DataTable dt = GetDataTableOrWhatever();
wb.Worksheets.Add(dt,"WorksheetName");
Posted by: Guest on August-11-2021
-1

export data from excel to sql server

From your SQL Server Management Studio, you open Object Explorer, go to your database where you want to load the data into, right click, then pick Tasks > Import Data. 
This opens the Import Data Wizard, which typically works pretty well for importing from Excel.
Posted by: Guest on October-04-2021

Code answers related to "export sql data to excel c#"

C# Answers by Framework

Browse Popular Code Answers by Language